Accepting request 229523 from home:michal-m:branches:Base:System

- Regenerate the initrd in %posttrans (fate#313506)

OBS-URL: https://build.opensuse.org/request/show/229523
OBS-URL: https://build.opensuse.org/package/show/Base:System/ucode-intel?expand=0&rev=18
This commit is contained in:
Thomas Renninger 2014-04-10 08:14:07 +00:00 committed by Git OBS Bridge
parent ccf478acdc
commit d6a021ebfe
2 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -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