#Configure GRUB on Fedora

7 messages · Page 1 of 1 (latest)

hasty socket
#

hey all, i'd like to move my old kernels and fedora rescue to a sub-entry (like it is on mint).

    submenu "Old kernels and Rescue options" {
        menuentry "Old Kernel 1" {
            linux /boot/vmlinuz-4.15.0-101-generic root=/dev/sda1 ro quiet splash
            initrd /boot/initrd.img-4.15.0-101-generic
        }
        menuentry "Old Kernel 2" {
            linux /boot/vmlinuz-4.15.0-99-generic root=/dev/sda1 ro quiet splash
            initrd /boot/initrd.img-4.15.0-99-generic
        }
        menuentry "Rescue Mode" {
            linux /boot/vmlinuz-rescue root=/dev/sda1 ro single
            initrd /boot/initrd.img-rescue
        }
    }
}

i found this example script online, but i'm not sure how to configure it to my needs. how does fedora know to put the newest kernel on top? wont the config with the sub-entry be overwritten when i update my kernels?

hasty socket
#

apparently there's another way, by editing /etc/grub.d/10_linux. i just don't know where to 😅

#

what??

hasty socket
#

might be worthy to ignore everything I said before.
according to someone, just setting GRUB_DISABLE_SUBMENU to false should do what i want. but it doesn't seem to work. does it work for anyone else?

hasty socket