packages: kernel/kernel.spec - suggest dracut and build initramfs with it w...
baggins
baggins at pld-linux.org
Sat Apr 14 17:06:07 CEST 2012
Author: baggins Date: Sat Apr 14 15:06:07 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- suggest dracut and build initramfs with it when present
---- Files affected:
packages/kernel:
kernel.spec (1.1039 -> 1.1040)
---- Diffs:
================================================================
Index: packages/kernel/kernel.spec
diff -u packages/kernel/kernel.spec:1.1039 packages/kernel/kernel.spec:1.1040
--- packages/kernel/kernel.spec:1.1039 Fri Apr 13 20:38:46 2012
+++ packages/kernel/kernel.spec Sat Apr 14 17:06:01 2012
@@ -297,6 +297,7 @@
Requires: cpuinfo(pae)
%endif
%endif
+Suggests: dracut
Suggests: keyutils
Suggests: linux-firmware
Provides: %{name}(netfilter) = 20070806
@@ -1138,6 +1139,11 @@
ln -sf initrd-%{kernel_release}.gz %{initrd_dir}/initrd
%{?alt_kernel:ln -sf initrd-%{kernel_release}.gz %{initrd_dir}/initrd%{_alt_kernel}}
+# if dracut is present then generate full-featured initramfs
+if [ -x /sbin/dracut ]; then
+ /sbin/dracut --quiet /boot/initramfs-%{kernel_release}.img %{kernel_release}
+fi
+
# update boot loaders when old package files are gone from filesystem
if [ -x /sbin/update-grub -a -f /etc/sysconfig/grub ]; then
if [ "$(. /etc/sysconfig/grub; echo ${UPDATE_GRUB:-no})" = "yes" ]; then
@@ -1502,6 +1508,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.1040 2012/04/14 15:06:01 baggins
+- suggest dracut and build initramfs with it when present
+
Revision 1.1039 2012/04/13 18:38:46 arekm
- up to 3.3.2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/kernel/kernel.spec?r1=1.1039&r2=1.1040
More information about the pld-cvs-commit
mailing list