all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-kernel-helper] systemd-boot: switch to suggesting new packages
Date: Thu, 31 Jul 2025 13:44:55 +0200	[thread overview]
Message-ID: <20250731114455.995999-1-f.gruenbichler@proxmox.com> (raw)

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@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

             reply	other threads:[~2025-07-31 11:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-31 11:44 Fabian Grünbichler [this message]
2025-08-01  8:52 ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250731114455.995999-1-f.gruenbichler@proxmox.com \
    --to=f.gruenbichler@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal