Description of problem: at the completion of the install if Xfce from Mga8-beta1-i586. Classic Install .iso, the following error is displayed after updates are applied: an error occurred: ERROR: 'script' failed for microcode-0.2020616-1.mga8.nonfree-noarch. Version-Release number of selected component (if applicable): ISO Name: Mageia-8-beta1-i586.iso DATE.txt: Sun 19 Jul 2020 12:59:01 PM CEST md5sum: ec65777bc934f0e078e8b9c468a01bdb How reproducible: on different hardware, real 32bit processor(AMD 2400XP) and intel Core i5 (Toshiba portege R930 Steps to Reproduce: 1.install Xfce from i586 Classic Install .iso 2.at configure page, configure network (wired) 3.after bootloader installation, choose to update system
Keywords: (none) => 8beta1
Created attachment 11759 [details] report.bug.xz from install
Created attachment 11760 [details] lspcidrake
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 fi
CC: (none) => davidwhodginsAssignee: bugsquad => mageia
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 PackagesAssignee: mageia => pkg-bugs
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 fi
CC: (none) => mageia
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.
Status?
CC: (none) => fri
resolved
Status: NEW => RESOLVEDResolution: (none) => FIXED