]> git.proxmox.com Git - pve-installer.git/commitdiff
followup: only do zz-pve-efiboot if ZFS and EFI is used, for now
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 1 Jul 2019 20:36:59 +0000 (22:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 1 Jul 2019 20:36:59 +0000 (22:36 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index 8c424dcd0513c2741b59c93d6ff37e9a1086e6f2..e6a29b3e86046bf4b054b9809ea3e14d814b6d58 100755 (executable)
@@ -1656,8 +1656,10 @@ _EOD
            syscmd("chroot $targetdir /usr/sbin/update-grub") == 0 ||
                die "unable to update boot loader config\n";
 
-           syscmd("chroot $targetdir /etc/kernel/postinst.d/zz-pve-efiboot") == 0 ||
-               die "unable to generate systemd-boot config\n";
+           if ($use_zfs && $boot_type eq 'efi') {
+               syscmd("chroot $targetdir /etc/kernel/postinst.d/zz-pve-efiboot") == 0 ||
+                   die "unable to generate systemd-boot config\n";
+           }
 
            syscmd("umount $targetdir/dev");
        }