Iâve been trying this modification/fix on my multi-boot system, and I have a couple of anomalies to report - or to expose my ignorance with
I ran the suggested commands above, but some oddities in /boot/grub/grub.cfg resulted:
The first EndeavourOS entry was trying to load up [ linux /boot/vmlinuz-linux.png ] (which is not likely to go well - this is a .png file of the EndeavourOS logo). This same entry contains the dreaded:
[ initrd /boot/amd-ucode.img ] on its own as well. Strangely, the second entry appears to be perfect, including the double initrd entries.
The second entry was for ArcoLinux - and would boot - but does not have amd-code.img mentioned in the initrd line.
The third entry is for an pre-existing Arch - and is perfect, would boot, and includes the amd-ucode.img
The other entries are for debian based systems, and show no sign of trouble.
I then tried the same thing on Arch itself. It worked fine for Archâs own entries (as it should!) and they include amd-ucode.img where appropriate. However, although ALL entries would boot, neither Arcolinux nor EndeavourOS had any mention of amd-ucode.img in their entries, although they have the file in the boot directory.
So - I am doing something wrong, or something doesnât quite work, or both! Overall, it strengthens my desire to sidestep and ignore the entire grub ecosystem and use rEFInd. Comments? Enlightenment? Hope I didnât ruin anyoneâs day âŚ
Forgot to mention in my previous post that, due to now having timeshift on Arch and EndeavourOS, and the fact that EndeavourOS is easy to re-install , I would be perfectly happy to be a âremote testing facilityâ if such would be usefulâŚ
rEfind âŚoooh i donât think i could ever get used to that? For me i would rather just not have grub altogether and just use UEFI to boot each OS if that was possible. No splash screen or boot menu just a boot sequence that loads and you select your choice. Isnât this kind of already out there? Iâve always thought that grub doesnât really belong with UEFI. Any thoughts?
I tend to agree about grub not fitting in with UEFI. In fact, I really like grub (legacy) back in the day instead of lilo (even had a chainload setup that gave me a boot animation!) but grub 2 has always ended up giving me trouble, despite the improvements.
I use rEFInd because it is so easy, bypasses grub or not (as you wish) and avoids having to reorder and edit UEFI NVRAM all the time - efobootmgr or no - just pick an OS logo and go! Itâs even themeable, if you can be bothered (I havenât).
The grub-mkconfig does things in a rather complex way. While generating, it seems to read existing grub.cfg files from the other existing systems. And if they already have some issues, the issues are simply copied to the grub.cfg to be generated.
So Iâd try fixing the grub.cfg files on other systems first. Check if they have any issues with the initrd lines and (manually) fix the issues in those systems. And then re-generate grub.cfg in EndeavourOS.
I hope that helps. But as said, grub is rather complex.
BTW, I have three systems on this machine: EndeavourOS, Arch, and Antergos.
All of them generate (with this fix) fully working grub.cfg files.
But I have another boot menu generation system as well in use. It creates file /boot/grub/custom.cfg, like on top of grub.cfg.
Because of that I could stop using os-prober altogether. But so far Iâm still using itâŚ
Yes this is the only issue i have with UEFI and nvram. I use efibootmgr also. I donât like that part where it keeps a list and it changes order. One of the handy tools i also use on Windows10 is easy uefi which allows you to modify the entries in the efi partition or move the boot order in Windows. This is handy and i have also used it on here to help a user get back up booting in certain situations where grub doesnât add the entry properly for Windows.
Just for the sh&^% and giggles, Iâll give that a try. I rather doubt itâll be that simple though - after all I started the quest for better because every time I put a new system in, it killed access to my Arch setup - presumably because it MISread the (working) grub.cfg in its boot dir. If I could get your fix into all the other systems, then perhaps having it right once would work! It still is a massive PITA to have grub hijacked every time there is a kernel update on ANY of the other systems. Given that 3 of the current set are Arch-based - thatâs a LOT of kernel updates! Thank heavens that rEFInd is so easy to get going!! I thought it might be complex, but apart from deciding which of the alternate boot methods it finds you want to use (for instance, most systems you can either bypass grub, or not as you choose). Mostly I direct boot the vmlinuz, and ignore the grub entirely, so it doesnât matter who THINKS they have control, or what they generated for a grub.
I still worry a bit about grub trying to boot the logo though
Yeah - the way I run the only re-ordering I do is a press of F8 in the BIOS boot screen, and a click and drag for rEFInd to the top of the NVRAM again⌠Assuming some helpful dev has inserted a new entry in NVRAM when regenerating grub, of course. Or maybe they have to make it work - I havenât decided on that point yetâŚ
More willing than able, at this point, Iâm afraid. I have no perspective on the things that might go wrong, as so far nothing has. I was expecting far worse than I got from reading the âofficialâ information pages, but the little install script just worked - and the only thing it didnât pick up was the correct logos for some of the distros (didnât know Xubuntu from Ubuntu - hadnât heard of EndeavourOS!) - but that was something that could be worked around. (see comment above about trying to boot a logo - one way of letting rEFInd know about what to display for a given boot file is to provide a graphics file, w correct extension, named to match the boot fileâs root.)
I suppose I could try adding it another couple of dual boots I have around, and see if I can come up with a useful commentary. Iâll let you know - but donât hold your breath!
Thanks!
Even some real life rEFInd configurations (shown as examples) would be useful for people who wish to try it.
But no hurry, take your time. And if you eventually feel you really donât want to write it, no problem, weâll survive!
I just recently successfully tested dual booting WIndows 8 and EndeavourOS (BTRFSonLuks with an encrypted /boot) with rEFInd on an old Acer laptop.
Windows was installed first, followed by EOS and rEFInd.
I then changed the UEFI bios boot order to first boot rEFInd.
rEFInd automatically found and allowed booting both installed systems without the need to configure anything!
I havenât tested adding more (encrypted) installations but canât imagine rEFInd having any problems with this.
Although rEFInd worked out of the box I then decided to make things prettier by theming rEFInd:
rEFind will now not scan and automatically insert found systems from (internal) hdd/sdd. I therefore added the manual menu entries above simply to force rEFInd to use an Arch logo for EOS.
rEFInd will automatically boot the last chosen system, or if it canât find that information, the 2nd entry (EOS) after 5 seconds.
Thanks! Thatâs really nice and simple way dual booting with Windows.
Maybe we could collect real life examples from several users into a wiki arcticle?
And add some âofficialâ eEFInd links, then people can understand the examples better and try some at home!
Whatâs the easiest way to get some email to you - or the wiki? I have a first pass at something that might work out for you, but would prefer a little more testing first, then a little more refinement too