-
Notifications
You must be signed in to change notification settings - Fork 246
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
x86_64 UEFI system needs GRUB2_IMAGE_FORMAT=x86_64-efi #3191
Comments
@pcahyna At first glance in
to set GRUB2_IMAGE_FORMAT @pcahyna |
@jsmeix Oops, I must have swapped the two! Really sorry. It is curious how even a simplest change can break things. |
I am confused when looking at So on a BIOS system GRUB2_IMAGE_FORMAT The prep/Linux-*/330_set_efi_arch.sh scripts tell [sic!]
so that is intentional but it does not tell why. As far as I see it works currently only because
but things will fail if GRUB2_IMAGE_FORMAT @pcahyna |
Use it as the argument of the -O option to grub-mkstandalone/grub-mkimage instead of the hardcoded x86_64-efi. For easier porting to non-x86_64 EFI platforms.
This issue does not depend on openSUSE Leap 15.5 |
The intent of the variable is to hold the image format for EFI GRUB on the platform, so the variable is simply misnamed. I should have called it
My bad, I should have indicated why and I don't even recall exactly, but I believe it has referred to the EFI_ARCH* variables and not to
Another variable will have to be introduced then. You may wonder why not to have just one variable that holds the correct image format for the given situation, regardless of whether it is UEFI or BIOS. I believe it is better to keep it separated for the case when we need to handle a hybrid boot setup. I think we are already creating bootable media with ESP even on BIOS systems and we may be able to create hybrid boot media in the future (maybe we are already able to do that in some situations). We are also already capable of restoring hybrid bootloader setups. |
This is related to the changes in
#3157
On my openSUSE Leap 15.5 x86_64 UEFI system
with current GitHub master code with
3db2724
that makes "rear mkrescue" fail with
because I have
so I need
GRUB2_IMAGE_FORMAT=x86_64-efi
inusr/share/rear/prep/Linux-i386/330_set_efi_arch.sh
The text was updated successfully, but these errors were encountered: