[pve-devel] [PATCH installer] actually use more than 8 disks if selected

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Dec 14 14:08:44 CET 2016


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 proxinstall | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxinstall b/proxinstall
index 10e5ace..18df7bb 100755
--- a/proxinstall
+++ b/proxinstall
@@ -2560,7 +2560,7 @@ my $get_raid_devlist = sub {
     my $dev_name_hash = {};
 
     my $devlist = [];
-    for (my $i = 0; $i < 8; $i++) {
+    for (my $i = 0; $i < @$hds; $i++) {
 	if (my $hd = $config_options->{"disksel$i"}) {
 	    my ($disk, $devname, $size, $model) = @$hd;
 	    die "device '$devname' is used more than once\n" 
-- 
2.1.4





More information about the pve-devel mailing list