[pve-devel] [PATCH pve-kernel-meta/pve-kernel-5.4] boot-tool: prefer PVE for systemd-boot loader title

Stoiko Ivanov s.ivanov at proxmox.com
Tue Sep 28 11:29:29 CEST 2021


From: Fabian Grünbichler <f.gruenbichler at proxmox.com>

like for Grub where this is handled via snippets with PVE > PMG > PBS.

Reported-by: Oguz Bektas <o.bektas at proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
(cherry picked from commit 40d8d36eef7935ee386edbdf5328f3b6421ff899)
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
this patch is the only relevant one currently on master and not on
pve-kernel-5.4 (the others are version bumps and the changed upload target)

 proxmox-boot/zz-proxmox-boot | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/proxmox-boot/zz-proxmox-boot b/proxmox-boot/zz-proxmox-boot
index 42b0f01..244fe8e 100755
--- a/proxmox-boot/zz-proxmox-boot
+++ b/proxmox-boot/zz-proxmox-boot
@@ -31,7 +31,9 @@ trap cleanup EXIT INT TERM QUIT
 . /usr/share/pve-kernel-helper/scripts/functions
 
 LOADER_TITLE="Proxmox Virtual Environment"
-if [ -d /usr/share/doc/proxmox-mailgateway/ ]; then
+if [ -d /etc/pve/ ]; then
+	LOADER_TITLE="Proxmox Virtual Environment"
+elif [ -d /usr/share/doc/proxmox-mailgateway/ ]; then
 	LOADER_TITLE="Proxmox Mailgateway"
 elif [ -d /usr/share/doc/proxmox-backup/ ]; then
 	LOADER_TITLE="Proxmox Backup Server"
-- 
2.30.2





More information about the pve-devel mailing list