Do not update GRUB configs explicitly

File triggers from grub2 package already handle this.
This commit is contained in:
Eugene Shatokhin 2015-04-22 15:07:16 +03:00
parent b0fd2a9614
commit b23ab7b0a0

View file

@ -1500,7 +1500,8 @@ cat > $kernel_files-post <<EOF
INITRD=/boot/initrd-$KernelVer.img
/sbin/dracut -f \${INITRD} $KernelVer
/usr/sbin/update-grub2
# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2
pushd /boot > /dev/null
if [ -L vmlinuz-$kernel_flavour ]; then
@ -1526,7 +1527,8 @@ if [ -L initrd-$kernel_flavour.img ]; then
fi
fi
/usr/sbin/update-grub2
# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2
popd > /dev/null
exit 0