X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=proxinstall;h=380abdfec651579f23b90f6b22f563eae215ac44;hb=dea730ea4ce9088bf07a101b16d5fd3b91c25a6a;hp=c8cdf21bb56194dae711b1d0e9cd26a5188160fe;hpb=18a9811ee56ec2ecfa2c405a221f6149777e9fe3;p=pve-installer.git diff --git a/proxinstall b/proxinstall index c8cdf21..380abdf 100755 --- a/proxinstall +++ b/proxinstall @@ -592,6 +592,7 @@ sub hd_list { next if $info !~ m/^E: DEVTYPE=disk$/m; next if $info =~ m/^E: ID_CDROM/m; + next if $info =~ m/^E: ID_FS_TYPE=iso9660/m; my ($name) = $info =~ m/^N: (\S+)$/m; @@ -1096,7 +1097,7 @@ sub prepare_systemd_boot_esp { File::Path::make_path("$targetdir/$espmp/EFI/proxmox") || die "unable to create directory $targetdir/$espmp/EFI/proxmox\n"; - syscmd("chroot $targetdir bootctl --no-variables --path /$espmp install") == 0 || + syscmd("chroot $targetdir bootctl --path /$espmp install") == 0 || die "unable to install systemd-boot loader\n"; write_config("timeout 3\ndefault proxmox-*\n", "$targetdir/$espmp/loader/loader.conf"); @@ -1377,6 +1378,10 @@ sub extract_data { die "unable to mount proc on $targetdir/proc\n"; syscmd("mount -n -t sysfs sysfs $targetdir/sys") == 0 || die "unable to mount sysfs on $targetdir/sys\n"; + if ($boot_type eq 'efi') { + syscmd("mount -n -t efivarfs efivarfs $targetdir/sys/firmware/efi/efivars") == 0 || + die "unable to mount efivarfs on $targetdir/sys/firmware/efi/efivars: $!\n"; + } syscmd("chroot $targetdir mount --bind /mnt/hostrun /run") == 0 || die "unable to re-bindmount hostrun on /run in chroot\n"; @@ -1734,6 +1739,7 @@ _EOD syscmd("umount $targetdir/mnt/hostrun"); syscmd("umount $targetdir/tmp"); syscmd("umount $targetdir/proc"); + syscmd("umount $targetdir/sys/firmware/efi/efivars"); syscmd("umount $targetdir/sys"); if ($use_zfs) { @@ -3240,7 +3246,7 @@ sub create_intro_view { if (int($total_memory) < 1024) { my $fullname = $product_fullname->{$setup->{product}}; - display_error("Less than 1 GiB memory detected, installation will probably fail.\n\n". + display_error("Less than 1 GiB of usable memory detected, installation will probably fail.\n\n". "See 'System Requirements' in the $fullname documentation."); }