grub2-mkconfig -> grub-mkconfig

This commit is contained in:
Kolan Sh 2016-08-17 13:13:34 +03:00
parent ddde9aaeb9
commit ae5bb19dc6
2 changed files with 8 additions and 2 deletions

View File

@ -33,7 +33,10 @@ mount -o remount,ro -force /boot
# Updating Grub config
echo "Updating Grub menu"
if [ `which grub2-mkconfig 2>/dev/null` ]; then
if [ `which grub-mkconfig 2>/dev/null` ]; then
[ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg
[ -f /boot/grub2/grub.cfg ] && grub-mkconfig -o /boot/grub2/grub.cfg
elif [ `which grub2-mkconfig 2>/dev/null` ]; then
[ -f /boot/grub/grub.cfg ] && grub2-mkconfig -o /boot/grub/grub.cfg
[ -f /boot/grub2/grub.cfg ] && grub2-mkconfig -o /boot/grub2/grub.cfg
else

View File

@ -101,7 +101,10 @@ fi
# Updating Grub config
echo "Updating Grub menu"
if [ `which grub2-mkconfig 2>/dev/null` ]; then
if [ `which grub-mkconfig 2>/dev/null` ]; then
[ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg
[ -f /boot/grub2/grub.cfg ] && grub-mkconfig -o /boot/grub2/grub.cfg
elif [ `which grub2-mkconfig 2>/dev/null` ]; then
[ -f /boot/grub/grub.cfg ] && grub2-mkconfig -o /boot/grub/grub.cfg
[ -f /boot/grub2/grub.cfg ] && grub2-mkconfig -o /boot/grub2/grub.cfg
else