diff --git a/ucode-intel.changes b/ucode-intel.changes index e0c3319..93bf546 100644 --- a/ucode-intel.changes +++ b/ucode-intel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 4 13:39:48 UTC 2014 - mmarek@suse.cz + +- Regenerate the initrd in %posttrans (fate#313506) + ------------------------------------------------------------------- Tue Feb 11 09:13:12 UTC 2014 - idonmez@suse.com diff --git a/ucode-intel.spec b/ucode-intel.spec index 856389d..59c9f5f 100644 --- a/ucode-intel.spec +++ b/ucode-intel.spec @@ -22,6 +22,7 @@ Release: 0 Summary: Microcode Updates for Intel x86/x86-64 CPUs License: SUSE-Firmware Group: Hardware/Other +BuildRequires: suse-module-tools #License is: Intel Software License Agreement Url: http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=22508&keyword=Microcode&lang=eng Source0: microcode-%{version}.tgz @@ -53,16 +54,12 @@ install -D -m 0644 $file %{buildroot}/lib/firmware/$file done %post -#if this fails, the user must either reboot or reload manually. -[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup -if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then - echo "Skipping recreation of existing initial ramdisks, due" - echo "to presence of /var/lib/no_initrd_recreation_by_suspend" -elif [ -x /sbin/mkinitrd ]; then - /sbin/mkinitrd -fi +%{?regenerate_initrd_post} test -f /sys/devices/system/cpu/microcode/reload && /bin/echo 1 > /sys/devices/system/cpu/microcode/reload || exit 0 +%posttrans +%{?regenerate_initrd_posttrans} + %files %defattr(-,root,root) %doc LICENSE