What is the current way to method to change bootload order used by grub?
I have two installs of leap 15.3.
One on sda5 (currently the default) and the other on sda1.
I would like to change that to make sda1 the default
thanks.
YaST bootloader tool used to show the partition location of the different options and had a simple reorder tool.
That was a while ago.
Do both 15.3s have grub-efi and os-prober installed? If yes, you can specify order either using efibootmgr, or via the PC’s UEFI BIOS, and thwart the other from changing it by not having the ESP partition mounted when it’s booted, or uninstalling grub from it. If no UEFI, and grub is on MBR, then the last 15.3 to write its grub.cfg will have control, i.e. be #1 in the menu. Other possibilities require knowing more details of your partitioning and grub setup. If you want the menu always to be the same in either case, create /boot/grub2/custom.cfg or use /etc/grub.d/[01-09]custom that only you ever write, so always stays as you configure.
Yes, both have grub-efi
efibootmgr was not installed, but is now, but how do I load and use this tool?
os-prober is installed
grub-efi is not, and not found in the yast software manager
Previous versions with old grub would write into the same file, I and could simply add another installation, however that looks like a thing of the past.
My solution for this was to modify both install’s fstab so that each is looking at the same boot files.
Both installs contain these boot options in fstab.
If I understood it correctly you want sda1 as the main bootloader.
I have two tumbleweeds in one machine, one bloated and one minimal.
The way I do it to change the loader is to just boot to the tumbleweed I like to be the default and just run the loader in yast2
The next time I reboot the one I want will be the default.
What I mean is open the boot loader in yast2 and click ok and that’s it.
Edit:
I have to note that each operating system has it’s own /boot efi.
Rereading your post above, you mention the MBR. I think from habits from way back I always installed in the MBR. Is that the difference? What you mention is what I am used to. Each distro installed just adds to that list, and the last one installed is the default.
This time around I simply accepted all of the defaults on the install, understanding that there are improvements made and trusting the system.
So, it sounds like I need to make a change and really don’t want to screw anything up.
Which would work better in being able to manage the boot order?
Would that be to reload the bootloader into the MBR?
Or another method via grub2? Installing grub2-x86_64-efi or something else?