You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I firstly had an Ubuntu with the EFI boot variable pointed to "\EFI\ubuntu\shimx64.efi", and I wanted to install Manjaro. Groub-install would not do it, so by reading some recommendation on the web, I just copied the \EFI\manjaro* to the \EFI\ubuntu, this did the trick, at the time I did not understand what was the problem, but I just moved on.
So today I had to reinstall my OS, and I stumbled upon the same problem, and I decided to dig deep to understand what was going on.
For me, as a lay user, I had no idea how to add or remove boot entries in UEFI, I went to their specification website and I find a giant document that does not clearly give me a tip on how to troubleshoot it. All I wanted to know was if I just had to create folders and files with .efi to get a boot entry, and what was the correct name for the file. Now I understand and it is all very obvious, I will work on adding to some wikis what I wish I had found when searched for it.
Anyway, I then found the command to get the bootlist efibootmgr -v
That suggested be to run: rm /sys/firmware/efi/efivars/dump-*
and I thought: why not? but I don't remember if I ran that before or after efibootmgr --create --disk /dev/nvme0n1 --part 1 --label Manjaro -l "\EFI\manjaro\grubx64.efi"
And I did not check if there were dump files before executing,.. I know it would be important to know that.
Anyway, it did not show up in the boot menu, then I don't remember exactly if I tried to add and remove more items, but I noticed efibootmgr did not show it in the BootOrder, so I manually added it with efibootmgr -o 0007,0000,0001,0002,2001,2002,2003 and it finally worked!
I then thought the problem was that it would just add entries but it would not add to the BootOrder automatically, for one reason or another, but now I try to reproduce it, but I can't, I tried many different combinations, and really, unfortunately I can't reproduce it. Now, whenever I add a new item, it also includes it to the BootOrder.
So long story short, I think that after adding an entry, efibootmgr should try to retrieve the data, to see if it really persisted there, and if not, throw an error that would be passed on to GRUB, and to the OS installation GUI.
Or instead of efibootmgr dealing with it, maybe GRUB could just call efibootmgr -v and check if the new entry is there and if it is not included in the BootOrder, it would throw an error.
Thanks for the great job, and if there is any files that I could provide to help reproduce it, just let me know.
The text was updated successfully, but these errors were encountered:
Background story:
I firstly had an Ubuntu with the EFI boot variable pointed to "\EFI\ubuntu\shimx64.efi", and I wanted to install Manjaro. Groub-install would not do it, so by reading some recommendation on the web, I just copied the \EFI\manjaro* to the \EFI\ubuntu, this did the trick, at the time I did not understand what was the problem, but I just moved on.
So today I had to reinstall my OS, and I stumbled upon the same problem, and I decided to dig deep to understand what was going on.
For me, as a lay user, I had no idea how to add or remove boot entries in UEFI, I went to their specification website and I find a giant document that does not clearly give me a tip on how to troubleshoot it. All I wanted to know was if I just had to create folders and files with .efi to get a boot entry, and what was the correct name for the file. Now I understand and it is all very obvious, I will work on adding to some wikis what I wish I had found when searched for it.
Anyway, I then found the command to get the bootlist
efibootmgr -v
I don't remember exactly how the next steps were, but then I tried:
I googled for it, and I ended up in this page: https://unix.stackexchange.com/questions/379774/grub-installation-failed
That suggested be to run:
rm /sys/firmware/efi/efivars/dump-*
and I thought: why not? but I don't remember if I ran that before or after
efibootmgr --create --disk /dev/nvme0n1 --part 1 --label Manjaro -l "\EFI\manjaro\grubx64.efi"
And I did not check if there were dump files before executing,.. I know it would be important to know that.
Anyway, it did not show up in the boot menu, then I don't remember exactly if I tried to add and remove more items, but I noticed efibootmgr did not show it in the BootOrder, so I manually added it with
efibootmgr -o 0007,0000,0001,0002,2001,2002,2003
and it finally worked!I then thought the problem was that it would just add entries but it would not add to the BootOrder automatically, for one reason or another, but now I try to reproduce it, but I can't, I tried many different combinations, and really, unfortunately I can't reproduce it. Now, whenever I add a new item, it also includes it to the BootOrder.
So long story short, I think that after adding an entry, efibootmgr should try to retrieve the data, to see if it really persisted there, and if not, throw an error that would be passed on to GRUB, and to the OS installation GUI.
Or instead of efibootmgr dealing with it, maybe GRUB could just call
efibootmgr -v
and check if the new entry is there and if it is not included in the BootOrder, it would throw an error.Thanks for the great job, and if there is any files that I could provide to help reproduce it, just let me know.
The text was updated successfully, but these errors were encountered: