#1036948 edk2: please configure a grub menu entry for efi-shell-ARCH

Package:
src:edk2
Source:
src:edk2
Submitter:
Lionel Mamane
Date:
2024-07-31 22:03:04 UTC
Severity:
normal
Tags:
#1036948#5
Date:
2023-05-30 15:44:30 UTC
From:
To:
Dear Maintainer,

On installation of an architecture-appropriate efi-shell-XXX package,
please copy the shell into the EFI partition and configure grub2 to
have a boot menu entry to enter that shell.

I attach an example grup config file for aarch64, which works if
dropped into /etc/grub.d/35_efi-shell-aarch64 and the shell has been
installed as /boot/efi/EFI/tianocore/shellaa64.efi

The architecture test in the grub config file is probably not exactly
the best one; feel free to improve so that it works when running e.g.
an armfh or 32-bit arm Debian port on an aarch64-able machine.

For other architectures, adapt the architecture test. Maybe you can
generate the file for each architecture from a template where the only
change is the architecture test.

#1036948#10
Date:
2024-07-31 01:23:25 UTC
From:
To:
Let me second this request. In some cases the UEFI shell is the main and
the only tool to inspect the UEFI variables, DMI tables, etc. I think it
would be helpful to be able to boot it from the grub menu if it is
installed on the UEFI system.

#1036948#15
Date:
2024-07-31 21:59:53 UTC
From:
To:
In an attempt to move forward, I opened a draft merge request loosely
based on Lionel's patch:
<https://salsa.debian.org/qemu-team/edk2/-/merge_requests/15>

For now it is only a PoC limited to x64 and may be extended to other
platforms if it receives positive feedback from maintainers.