[pve-devel] [PATCH pve-installer]sys: Invert low storage propt logic
Philipp Hufnagl
p.hufnagl at proxmox.com
Thu Jul 13 11:38:53 CEST 2023
Currently there is a bug that you only can install < 8gb 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 at proxmox.com>
---
Proxmox/Sys/Block.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Proxmox/Sys/Block.pm b/Proxmox/Sys/Block.pm
index a5d5506..26085e3 100644
--- a/Proxmox/Sys/Block.pm
+++ b/Proxmox/Sys/Block.pm
@@ -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}");
--
2.39.2
More information about the pve-devel
mailing list