]> git.proxmox.com Git - pve-installer.git/blobdiff - proxinstall
proxinstall: only display option maxroot for product pve
[pve-installer.git] / proxinstall
index 1d309eb2d730fe52789ae050b12a8f464102c070..111fe33447d630f0ec3c796e082f9a075215d31e 100755 (executable)
@@ -144,7 +144,9 @@ my $ipv4_mask_hash = {
     '255.255.255.224' => 27,
     '255.255.255.240' => 28,
     '255.255.255.248' => 29,
-    '255.255.255.252' => 30
+    '255.255.255.252' => 30,
+    '255.255.255.254' => 31,
+    '255.255.255.255' => 32
 };
 
 my $ipv4_reverse_mask = [
@@ -779,9 +781,11 @@ sub zfs_create_rpool {
 
     syscmd ("zfs create $zfspoolname/ROOT")  == 0 ||
        die "unable to create zfs $zfspoolname/ROOT volume\n";
-    
-    syscmd ("zfs create $zfspoolname/data")  == 0 ||
-       die "unable to create zfs $zfspoolname/data volume\n";
+
+    if ($setup->{product} eq 'pve') {
+       syscmd ("zfs create $zfspoolname/data")  == 0 ||
+           die "unable to create zfs $zfspoolname/data volume\n";
+    }
 
     syscmd ("zfs create $zfspoolname/ROOT/$zfsrootvolname")  == 0 ||
        die "unable to create zfs $zfspoolname/ROOT/$zfsrootvolname volume\n";
@@ -2684,10 +2688,12 @@ sub create_hdoption_view {
     push @$hdsize_labeled_widgets, "swapsize", $entry_swapsize;
 
     my $entry_maxroot = Gtk3::Entry->new();
-    $entry_maxroot->set_tooltip_text("maximum size (GB) for LVM root volume");
-    $entry_maxroot->signal_connect (key_press_event => \&check_float);
-    $entry_maxroot->set_text($config_options->{maxroot}) if $config_options->{maxroot};
-    push @$hdsize_labeled_widgets, "maxroot", $entry_maxroot;
+    if ($setup->{product} eq 'pve') {
+       $entry_maxroot->set_tooltip_text("maximum size (GB) for LVM root volume");
+       $entry_maxroot->signal_connect (key_press_event => \&check_float);
+       $entry_maxroot->set_text($config_options->{maxroot}) if $config_options->{maxroot};
+       push @$hdsize_labeled_widgets, "maxroot", $entry_maxroot;
+    }
 
     my $entry_minfree = Gtk3::Entry->new();
     $entry_minfree->set_tooltip_text("minimum free LVM space (GB, required for LVM snapshots)");