Menu

Is there a way to find out which {%efiarch} is active during boot process?

Nikolai
2018-09-12
2018-09-12
  • Nikolai

    Nikolai - 2018-09-12

    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

     
  • Roderick W. Smith

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.