grub2-mkconfig -> grub-mkconfig
This commit is contained in:
parent
ddde9aaeb9
commit
ae5bb19dc6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue