[pve-devel] [PATCH proxmox-kernel-helper] systemd-boot: switch to suggesting new packages

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jul 31 13:44:55 CEST 2025


in Trixie, systemd-boot got split into:

systemd-boot: systemd integration and automatic installation of bootloader
systemd-boot-tools: bootctl
systemd-boot-efi(-XXX-signed): EFI binaries

when managed using p-b-t, we only want the latter two, since systemd-boot fails
its postinst (sometimes) if the ESP is not mounted.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    we prepared a fixed systemd-boot package for our repositories, but since
    systemd is updated fairly frequently even in Debian stable we either need to
    keep doing that or avoid pulling in systemd-boot on p-b-t *using* systems..
    
    but of course, users might want to use systemd-boot without p-b-t, so a hard
    Conflict also seems like a bad option..

 debian/control            | 2 +-
 src/bin/proxmox-boot-tool | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index f98c044..756be91 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Architecture: all
 Section: admin
 Priority: optional
 Depends: dosfstools, gdisk, systemd, udev, ${misc:Depends},
-Suggests: systemd-boot,
+Suggests: systemd-boot-tools, systemd-boot-efi
 Breaks: proxmox-ve (<< 6.0-2~), pve-kernel-helper,
 Replaces: proxmox-ve (<< 6.0-2~), pve-kernel-helper,
 Provides: pve-kernel-helper,
diff --git a/src/bin/proxmox-boot-tool b/src/bin/proxmox-boot-tool
index 6209393..95d699d 100755
--- a/src/bin/proxmox-boot-tool
+++ b/src/bin/proxmox-boot-tool
@@ -182,7 +182,11 @@ init_bootloader() {
 			mkdir -p "$esp_mp/$PMX_ESP_DIR"
 			if ! command -V bootctl >/dev/null 2>&1 ;
 			then
-				warn "E: bootctl is not available - make sure systemd-boot is installed"
+				warn "E: bootctl is not available - make sure systemd-boot-tools is installed"
+				exit 1
+			fi
+			if [ ! -d /usr/lib/systemd/boot/efi ]; then
+				warn "E: systemd-boot EFI files not available - make sure systemd-boot-efi is installed"
 				exit 1
 			fi
 
-- 
2.39.5





More information about the pve-devel mailing list