]> git.proxmox.com Git - grub2.git/commit
If we don't have writable grubenv and we're on EFI, always show the menu
authorSteve Langasek <steve.langasek@ubuntu.com>
Tue, 30 Oct 2018 22:04:16 +0000 (15:04 -0700)
committerColin Watson <cjwatson@debian.org>
Fri, 24 Sep 2021 23:37:38 +0000 (00:37 +0100)
commitb6915c2564a21fd32b777606a941b3677ebdb95b
tree6f377d5bee238187b8ce2310cc6c798f8c9ed9f8
parentf7ab86d0f97d1221acab5c1287e3afc6f77a9f54
If we don't have writable grubenv and we're on EFI, always show the menu

If we don't have writable grubenv, recordfail doesn't work, which means our
quickboot behavior - with a timeout of 0 - leaves the user without a
reliable way to access the boot menu if they're on UEFI, because unlike
BIOS, UEFI does not support checking the state of modifier keys (i.e.
holding down shift at boot is not detectable).

Handle this corner case by always using a non-zero timeout on EFI when
save_env doesn't work.

Reuse GRUB_RECORDFAIL_TIMEOUT to avoid introducing another variable.

Signed-off-by: Steve Langasek <steve.langasek@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1800722
Last-Update: 2019-06-24

Patch-Name: quick-boot-lvm.patch
util/grub.d/00_header.in