| Summary: | ERROR: 'script' failed for microcode -0.2020616-1.mga8.nonfree-noarch | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Ben McMonagle <westel> |
| Component: | RPM Packages | Assignee: | All Packagers <pkg-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins, fri, mageia, nicolas.salguero |
| Version: | Cauldron | Keywords: | 8beta1 |
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | microcode-0.2020616-1.mga8.nonfree-noarch | CVE: | |
| Status comment: | |||
| Attachments: |
report.bug.xz from install
lspcidrake |
||
|
Description
Ben McMonagle
2020-07-24 08:26:06 CEST
Ben McMonagle
2020-07-24 08:27:42 CEST
Keywords:
(none) =>
8beta1 Created attachment 11759 [details]
report.bug.xz from install
Created attachment 11760 [details]
lspcidrake
Ben McMonagle
2020-07-24 08:32:15 CEST
Summary:
ERROR: 'script' failed for microcode =>
ERROR: 'script' failed for microcode -0.2020616-1.mga8.nonfree-noarch As the package installs cleanly if installed after rebooting into the installed
system, I suspect "DURING_INSTALL" is not being set by the installer anymore.
$ rpm -q --scripts microcode shows
postinstall scriptlet (using /bin/sh):
if [ -z "$DURING_INSTALL" ] ; then
/usr/bin/dracut -f
fiCC:
(none) =>
davidwhodgins
Dave Hodgins
2020-07-24 09:02:41 CEST
Component:
RPM Packages =>
Installer $DURING_INSTALL is only set in the package install step, not in the package update step. And this is correct - the update step occurs after the system has been configured and the initial RAM disk has been created. If we set $DURING_INSTALL during the update step, then the initial RAM disk wouldn't get updated. I think this needs to be fixed in the microcode package postinstall scriptlet. Component:
Installer =>
RPM Packages Something like this should work:
if [ -z "$DURING_INSTALL" ] ; then
kernel=$(uname -r)
if [ -d /usr/lib/modules/$kernel ] ; then
# rebuild initrd for currently running kernel
/usr/bin/dracut -f
else
# rebuild initrd for most recently installed kernel
kernel=$(ls -1t /usr/lib/modules | head -1)
/usr/bin/dracut -f /boot/initrd-$kernel.img $kernel
fi
fiCC:
(none) =>
mageia
David Walser
2020-07-24 19:51:37 CEST
CC:
(none) =>
nicolas.salguero Hi, microcode-0.2020616-2.mga8.nonfree contains the modification of the post script which was proposed in comment 5. Best regards, Nico. resolved Status:
NEW =>
RESOLVED |