From: Marcin Krol Date: Sat, 20 Apr 2013 18:04:12 +0000 (+0000) Subject: - update grub.cfg by default X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=2ea35f515bd0875b6fff8c2f624dac7f57b7cd32;p=packages%2Fkernel.git - update grub.cfg by default --- diff --git a/kernel-vanilla.spec b/kernel-vanilla.spec index 9f75ff3..a1fde4d 100644 --- a/kernel-vanilla.spec +++ b/kernel-vanilla.spec @@ -516,11 +516,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