GRUB 2

From Omnia
Jump to navigation Jump to search

Config

/etc/boot/grub2/grub.cfg


Save Default

/etc/default/grub

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

Quick update:

echo "GRUB_SAVEDEFAULT=true" >> /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg

References:

Chain Loader

menuentry "Fedora (chainload)" {
    savedefault
    insmod ext2
    insmod chain
    set root=(hd0,msdos1)
    chainloader +1
}

Disable OS Prober

echo "GRUB_DISABLE_OS_PROBER=true" >> /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg

keywords