]> TLD Linux GIT Repositories - packages/kernel.git/commitdiff
- update grub.cfg by default
authorMarcin Krol <hawk@tld-linux.org>
Sat, 20 Apr 2013 18:05:55 +0000 (18:05 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 20 Apr 2013 18:05:55 +0000 (18:05 +0000)
kernel-vanilla.spec

index bc06d772a4301f66d602fff263388747d9b926aa..3ac8fcbe41f8f7e08dd772dd6a6d40d51ecc39c2 100644 (file)
@@ -6,7 +6,7 @@
 
 %define                _basever                3.2
 %define                _postver                .43
-%define                _rel                    1
+%define                _rel                    2
 
 %define                _enable_debug_packages                  0
 
@@ -522,11 +522,10 @@ if [[ "$USE_DRACUT" != [Nn][Oo] ]] && [ -x /sbin/dracut ]; then
        /sbin/dracut --force --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
-               /sbin/update-grub >/dev/null
-       fi
+# update boot loader
+[ -x /sbin/update-grub -a -f /etc/sysconfig/grub ] && . /etc/sysconfig/grub
+if [[ "$UPDATE_GRUB" != [Nn][Oo] ]]; then
+       /sbin/update-grub
 fi
 
 if [ -x /sbin/new-kernel-pkg ]; then