Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment: grub2-efi-autofind.cfg → replace "1st pass" with "insmod regexp" #38

Open
sla31 opened this issue Nov 10, 2023 · 1 comment

Comments

@sla31
Copy link

sla31 commented Nov 10, 2023

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 the for loop of the "1st pass" with insmod 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

@oxedions
Copy link
Member

oxedions commented Nov 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants