Our distribution rEFInd use case during LiveCD boot is as follows:
shim{%efiarch}.efi -> rEFInd (as grub{%efiarch}.efi) -> elilo / grub2.02
This is to handle both possible EFI architectures for ix86 platforms:
ia32 and x64.
It is obviously not possible to predict in advance which {%efiarch} the
bootable image would be run on.
We use manual boot stanzas for each boot option in the single
"refind.conf" file, but this leads to doubling of boot items:
one for x64 (grub/elilo) version and one more for ia32 version.
The same situation happens for all other boot options (like Windows or
other existing OS's)
Is there any way to find out which {%efiarch} is active now (during boot
process) and to hide or skip unused
architectures boot items from menu being displayed?
--
Best regards,
Nikolai Kostrigin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not for a manual boot stanza. That would require a variable in the refind.conf file to hold the architecture code.
Note, however, that auto-detection will automatically hide options for architectures that don't match the current one. Thus, if you reconfigure your refind.conf to use auto-detection of the boot option (changing also_scan_dirs, if necessary, to scan for loaders in an unusual location), it should work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Greetings!
Our distribution rEFInd use case during LiveCD boot is as follows:
shim{%efiarch}.efi -> rEFInd (as grub{%efiarch}.efi) -> elilo / grub2.02
This is to handle both possible EFI architectures for ix86 platforms:
ia32 and x64.
It is obviously not possible to predict in advance which {%efiarch} the
bootable image would be run on.
We use manual boot stanzas for each boot option in the single
"refind.conf" file, but this leads to doubling of boot items:
one for x64 (grub/elilo) version and one more for ia32 version.
The same situation happens for all other boot options (like Windows or
other existing OS's)
Is there any way to find out which {%efiarch} is active now (during boot
process) and to hide or skip unused
architectures boot items from menu being displayed?
--
Best regards,
Nikolai Kostrigin
Not for a manual boot stanza. That would require a variable in the
refind.conf
file to hold the architecture code.Note, however, that auto-detection will automatically hide options for architectures that don't match the current one. Thus, if you reconfigure your
refind.conf
to use auto-detection of the boot option (changingalso_scan_dirs
, if necessary, to scan for loaders in an unusual location), it should work.