]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
zz-pve-efiboot: make loader title product dependent
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Jul 2019 12:35:41 +0000 (14:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Jul 2019 12:36:03 +0000 (14:36 +0200)
default to "Proxmox Virtual Environment", and if the
proxmox-mailgateway package is installed (we simply check the docs
path) use "Proxmox Mailgateway" instead

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
efiboot/zz-pve-efiboot

index c29d1ef598f041aea94ae144940543bc8094843f..be24f492a39cb1cecbb4c5154264f040792abb4e 100755 (executable)
@@ -31,6 +31,11 @@ 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
+       LOADER_TITLE="Proxmox Mailgateway"
+fi
+
 potential_esps(){
        lsblk --list -o PATH,UUID,FSTYPE,PARTTYPE,MOUNTPOINT |
        awk '$3 == "vfat" && $4 == "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" && $5 == "" {print $1,$2}'
@@ -114,7 +119,7 @@ copy_and_config_kernels() {
 
                # create loader entry
                cat > "${esp}/loader/entries/proxmox-${kver}.conf" <<- EOF
-                       title    Proxmox
+                       title    ${LOADER_TITLE}
                        version  ${kver}
                        options   ${CMDLINE}
                        linux    /${KERNEL_ESP_DIR}/vmlinuz-${kver}