[SOLVED] Fedora 20 - how to change default boot order
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello All,
Fedora 20 on a UEFI motherboard.
For some reason I now have linux rescue as the default boot, instead of the latest kernel.
How can I restore the normal boot order, which used to put linux rescue after the kernels?
So the "rescue" option is actually listed first ?.
Normally I'd just say run grub2-mkconfig and see if that fixes things, then hack GRUB_DEFAULT in /etc/default/grub and try the mkconfig again. But according to this wiki article things have moved, so you'd need to be careful where you direct the output of the mkconfig.
I did have a UEFI fedora system for a while, but it kept messing with my (firmware) boot entries so I trashed it, hence I can't go look/play for myself.
So the "rescue" option is actually listed first ?.
yes, and blowed if I know how that happened as I haven't been monkeying with anything related.
Quote:
Normally I'd just say run grub2-mkconfig and see if that fixes things, then hack GRUB_DEFAULT in /etc/default/grub and try the mkconfig again. But according to this wiki article things have moved, so you'd need to be careful where you direct the output of the mkconfig.
According to that link it looks to me as though the output of grub2-mkconfig should be directed to /boot/efi/EFI/fedora/grub.cfg.
I'm unclear as to what I need to do to GRUB_DEFAULT in /etc/default/grub. Here is what is currently in that file...
GRUB_DEFAULT is zero-based, so if the kernel you want is (always) the second "menuentry", set GRUB_DEFAULT=1.
This will of course rely on future updates keeping the wanted kernel second - easy to re-fix if needed.
Also keep in mind you may lose your change at any time if grub is re-shipped.
See my sigline before you start.
I set GRUB_DEFAULT=1, didn't do anything else, and it has no effect.
I am not at all confident about running grub2-mkconfig, as it now isn't clear where the output should be directed.
Some stuff I've read says use "grub2-mkconfig -o /boot/grub2/grub.cfg", but other stuff suggests "grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg"
I currently do not have a "/boot/grub2/grub.cfg". There is a "/boot/grub2/" but it only contains "themes' (a dir) and file "grubenv".
There is a "/boot/efi/EFI/fedora/grub.cfg", and that would suggest that is where the output of grub2-mkconfig should go, but blowed if I can see that anywhere in Fedora docs.
Correct - the mkconfig uses the /etc/default/grub to help build the grub.cfg - the change does nothing by itself.
All the /boot/grub[2]/grub.cfg references you are finding are non-UEFI (i.e. historical BIOS/MBR) systems - that was everyone until quite recently. You need to build /boot/efi/EFI/fedora/grub.cfg
If I get bored watching the world cup over the weekend, I might re-build a F20 on UEFI.
Correct - the mkconfig uses the /etc/default/grub to help build the grub.cfg - the change does nothing by itself.
All the /boot/grub[2]/grub.cfg references you are finding are non-UEFI (i.e. historical BIOS/MBR) systems - that was everyone until quite recently. You need to build /boot/efi/EFI/fedora/grub.cfg
OK...done, done and All done!
Running "grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg" has done the trick.
The linux rescue versions are now relegated to the bottom of the heap, where they usually (and should) reside.
No need to fiddle with "/etc/default/grub".
Thanks for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.