[packages/kernel] posttrans: continue running even if geninitrd failed
glen
glen at pld-linux.org
Mon May 13 12:19:42 CEST 2013
commit 31a535c1a3080e9b878bbba0a026bcd8cd70b4a5
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon May 13 13:16:08 2013 +0300
posttrans: continue running even if geninitrd failed
kernel.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 6ab6d42..f73c2c9 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1044,10 +1044,10 @@ fi
%depmod %{kernel_release}
%posttrans
+# use posttrans to generate initrd after all dependant module packages (-drm, etc) are installed
[ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel
if [[ "$USE_GENINITRD" != [Nn][Oo] ]]; then
- # generate initrd after all dependant modules are installed
- /sbin/geninitrd -f --initrdfs=initramfs %{initrd_dir}/initrd-%{kernel_release}.gz %{kernel_release}
+ /sbin/geninitrd -f --initrdfs=initramfs %{initrd_dir}/initrd-%{kernel_release}.gz %{kernel_release} || :
fi
if [[ "$CREATE_SYMLINKS" != [Nn][Oo] ]]; then
mv -f %{initrd_dir}/initrd{,.old} 2> /dev/null
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/31a535c1a3080e9b878bbba0a026bcd8cd70b4a5
More information about the pld-cvs-commit
mailing list