Ask Your Question
3

how to sorten bootloader list

asked 2017-09-10 12:16:49 -0500

akshay 26 gravatar image

hi just installed updates and now it showing fedora26 4 times is there any command which can help me is sorting the list ( windows 10 and just fedora26) instead of fedora 26, windows10,fedora26,fedora26?

edit retag flag offensive close merge delete

Comments

Actually, from what you're showing, it only has three Fedora kernels listed, and even if you do nothing, it will stay that way, with the oldest kernel removed every time a new one's installed. This is a safety feature in case there's a problem with a new kernel because you should always have two known good kernels to use instead. My advice is to simply leave things alone and don't worry about it.

sideburns gravatar imagesideburns ( 2017-09-10 16:56:17 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-09-10 13:15:03 -0500

ozeszty gravatar image

Hi, you can install grub-customizer and in General settings -> Advanced settings disable GRUB_DISABLE_SUBMENU or change its value to false - this will create singe Fedora entry and hide others in a submenu. Unfortunately you'll have to run Grub Customizer and save its settings after every kernel update to keep grub menu tidy.

Second solution is to apply same changes to GRUB_DISABLE_SUBMENU in /etc/default/grub and rebuild grub.cfg:

  • on BIOS system run grub2-mkconfig -o /boot/grub2/grub.cfg
  • on UEFI system run grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Again, you'll have to rebuild grub.cfg after every kernel update or make Fedora rebuild it automatically.

edit flag offensive delete link more

Comments

thanks you

akshay 26 gravatar imageakshay 26 ( 2017-09-12 10:57:29 -0500 )edit

Question Tools

Stats

Asked: 2017-09-10 12:16:49 -0500

Seen: 234 times

Last updated: Sep 10 '17