]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
proxmox-boot: fix #3729 add --graceful to bootctl invocation
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 25 Apr 2022 16:33:01 +0000 (18:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 06:20:05 +0000 (08:20 +0200)
The version of systemd boot in bullseye, tries writing an efivar which
is not writeable on certain (broken) UEFIs (HP thin clients).

The issue was not present in the version in buster (the variable
simply did not get written) and can be worked around by adding
--graceful to the `bootctl install` command.

see also:
https://github.com/systemd/systemd/issues/13603

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
bin/proxmox-boot-tool

index fb4e320f6a5de2f8ff452078034e9c9f67596a67..6c0ae4ff6e62541903354d05457a00d672cd53dd 100755 (executable)
@@ -153,7 +153,7 @@ init() {
        if [ -d /sys/firmware/efi ]; then
                echo "Installing systemd-boot.."
                mkdir -p "$esp_mp/$PMX_ESP_DIR"
-               bootctl --path "$esp_mp" install
+               bootctl --graceful --path "$esp_mp" install
 
                echo "Configuring systemd-boot.."
                echo "timeout 3" > "$esp_mp/$PMX_LOADER_CONF.tmp"