]> git.proxmox.com Git - pve-installer.git/commitdiff
fixup global config: do not differ between steps
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Dec 2018 15:47:35 +0000 (16:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Dec 2018 15:53:41 +0000 (16:53 +0100)
This is the config from the whole installer, this should not be step
dependent, adds just and unecessarry and possible confusing level of
indirection.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index 58a2be240239d87ef9c0956a099bb6667d58b146..7a23521a1fb5c7ed65ee2f41a0e82b0dda168f15 100755 (executable)
@@ -253,26 +253,21 @@ my $password;
 my $mailto = 'mail@example.invalid';
 my $cmap;
 
-# Format: screen/function name => settings for that screen
-my $global_configuration = {
-
-    # TODO: add all the user-provided options during the install
-    # to be able to call them back if necessary
-
-    hdsel => {},
-    country => {
-       country => $country,
-       timezone => $timezone,
-       keymap => $keymap,
-    },
-    password => {
-       password => $password,
-       mailto => $mailto,
-    },
-    ipconf => {
-       hostname => $hostname,
-       domain => $domain,
-    },
+my $config = {
+    # TODO: add all the user-provided options for previous button
+    country => $country,
+    timezone => $timezone,
+    keymap => $keymap,
+
+    password => $password,
+    mailto => $mailto,
+
+    mngmt_nic => undef,
+    hostname => $hostname,
+    fqdn => undef,
+    ipaddress => undef,
+    netmask => undef,
+    gateway => undef,
 };
 
 # parse command line args