Discussion:
Bug#1077635: debian-installer: RFC: provide UEFI shell under Advanced/Export options
Add Reply
Dmitry Baryshkov
2024-07-31 01:10:01 UTC
Reply
Permalink
Source: debian-installer
Version: 20230607+deb12u6
Severity: wishlist

This is an RFC whether it would be possible to include UEFI shell into
the debian installer media. I understand that it won't work with
SecureBoot, however under some obscure cases UEFI shell is the only (or
the easiest) way to perform some actions.

For example, on some of old Qualcomm-based laptops EFI vars are not
accessible or are read-only. Thus it is not possible to setup boot
configuration from the running Linux configuration. Being able to boot
to the shell allows us to fix such issues.

With the UEFI shell being available as the Debian package it should be
pretty simple to include it into the generated D-I media. Having it
under the Advanced / Export options would mean that it should not be
used by default, still providing a way to rescue some of the issues.

WDYT?
--
With best wishes
Dmitry

-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: arm64 (aarch64)

Kernel: Linux 6.10.0-test-dp+ (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Pascal Hambourg
2024-07-31 13:20:01 UTC
Reply
Permalink
Post by Dmitry Baryshkov
This is an RFC whether it would be possible to include UEFI shell into
the debian installer media. I understand that it won't work with
SecureBoot
The menu entry can be hidden when secure boot is enabled.
Post by Dmitry Baryshkov
For example, on some of old Qualcomm-based laptops EFI vars are not
accessible or are read-only. Thus it is not possible to setup boot
configuration from the running Linux configuration.
Isn't it possible to work around this with grub-installer options
"install in the removable media path" and "do not update EFI boot
variables" ?
Dmitry Baryshkov
2024-09-05 04:30:01 UTC
Reply
Permalink
Source: debian-installer
Version: 20230607+deb12u6
Followup-For: Bug #1077635
Post by Pascal Hambourg
Post by Dmitry Baryshkov
This is an RFC whether it would be possible to include UEFI shell into
the debian installer media. I understand that it won't work with
SecureBoot
The menu entry can be hidden when secure boot is enabled.
Yes
Post by Pascal Hambourg
Post by Dmitry Baryshkov
For example, on some of old Qualcomm-based laptops EFI vars are not
accessible or are read-only. Thus it is not possible to setup boot
configuration from the running Linux configuration.
Isn't it possible to work around this with grub-installer options
"install in the removable media path" and "do not update EFI boot
variables" ?
Not really. E.g. on Lenovo Miix 630 winldr gets selected even if
grub is installed in the removable media path. Moreover until DTB
loading issues get sorted out we have to manually modify EFI boot
entries after installing the DtbLoader.efi.

-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.10.6-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)
--
With best wishes
Dmitry
Loading...