Open sla31 opened 10 months ago
Dear @sla31
Many MANY thanks! 😊 You have no idea how this helps me, because this small "mistery" was really anoying me. Using something without understanding why it works is a pain.
I updated the script to use both methods recently (search for BOOTX64 and then if not found search for grub file) : https://github.com/bluebanquise/infrastructure/blob/master/packages/bluebanquise-ipxe/grub2-efi-autofind.cfg
I will update the file this week with your fix.
Hi!
In
packages/bluebanquise-ipxe/grub2-efi-autofind.cfg
, all the "first pass" really does is to load the "regexp" Grub module. Loading the "regexp" Grub module has the side effect of enabling the "wildcard expander" in Grub. Tested on Ubuntu Focal 20.04 and RHEL 9.2 (even if the OS does not really matter), replacing thefor
loop of the "1st pass" withinsmod regexp
does the trick!Thanks for your great work! Sebastien.
Ref: https://stackoverflow.com/questions/67506022/create-a-grub-script-that-auto-detect-efi-systems-and-boot-first-one