boot-tool: prefer PVE for systemd-boot loader title

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

Reported-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2021-07-26 12:18:31 +02:00 committed by Thomas Lamprecht
parent 354e6f61a2
commit 40d8d36eef

View File

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