]> git.proxmox.com Git - pve-installer.git/commitdiff
disk partitioning: fix checking answer for to-small-disk prompt
authorPhilipp Hufnagl <p.hufnagl@proxmox.com>
Thu, 13 Jul 2023 09:38:53 +0000 (11:38 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 13 Jul 2023 14:15:44 +0000 (16:15 +0200)
Currently there is a bug that you only can install < 8 GB when you NOT
accept the warning. This is wrong. A user should have to accept the
warning to install on small systems

Signed-off-by: Philipp Hufnagl <p.hufnagl@proxmox.com>
 [T: reword commit subject & fix typo there ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Proxmox/Sys/Block.pm

index a5d5506dca07fd6345e48743f14933d0ae0a173e..26085e3040f4267da838dc67b52dfa2a5a1d6fad 100644 (file)
@@ -233,7 +233,7 @@ sub partition_bootable_disk {
            ." installation might not be successful! Continue?"
        );
        die "root disk '$target_dev' too small (${hdgb} GB < $soft_limit GB), and warning not accepted.\n"
-           if $response_ok;
+           if !$response_ok;
     }
 
     syscmd("sgdisk -Z ${target_dev}");