packages: kernel/kernel.spec - grub2 hook added

glen glen at pld-linux.org
Sun Jan 31 11:57:31 CET 2010


Author: glen                         Date: Sun Jan 31 10:57:31 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- grub2 hook added

---- Files affected:
packages/kernel:
   kernel.spec (1.747 -> 1.748) 

---- Diffs:

================================================================
Index: packages/kernel/kernel.spec
diff -u packages/kernel/kernel.spec:1.747 packages/kernel/kernel.spec:1.748
--- packages/kernel/kernel.spec:1.747	Sun Jan 31 03:12:42 2010
+++ packages/kernel/kernel.spec	Sun Jan 31 11:57:25 2010
@@ -1252,9 +1252,13 @@
 ln -sf initrd-%{kernel_release}.gz %{initrd_dir}/initrd
 %{?alt_kernel:ln -sf initrd-%{kernel_release}.gz %{initrd_dir}/initrd%{_alt_kernel}}
 
+if [ -x /sbin/update-grub ]; then
+	/sbin/update-grub >/dev/null 2>&1
+fi
 if [ -x /sbin/new-kernel-pkg ]; then
 	/sbin/new-kernel-pkg --initrdfile=%{initrd_dir}/initrd-%{kernel_release}.gz --install %{kernel_release} --banner "PLD Linux (%{pld_release})%{?alt_kernel: / %{alt_kernel}}"
-elif [ -x /sbin/rc-boot ]; then
+fi
+if [ -x /sbin/rc-boot ]; then
 	/sbin/rc-boot 1>&2 || :
 fi
 
@@ -1592,6 +1596,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.748  2010/01/31 10:57:25  glen
+- grub2 hook added
+
 Revision 1.747  2010/01/31 02:12:42  glen
 - firmware subpackage (optional)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel.spec?r1=1.747&r2=1.748&f=u



More information about the pld-cvs-commit mailing list