]> git.proxmox.com Git - pve-installer.git/blobdiff - Proxmox/Install/Config.pm
pass optional console parameter from installer to target
[pve-installer.git] / Proxmox / Install / Config.pm
index f496d613f51ff32d65163e9d778bebdd7e9d4a3d..55e53c7e78d8d22e1f801c105b7dac08faea5fd1 100644 (file)
@@ -43,6 +43,10 @@ my sub parse_kernel_cmdline {
        }
     }
 
+    if ($cmdline =~ m/console=(\S+)[\s\n]/i) {
+           $cfg->{console} = $1;
+    }
+
     return $cfg;
 }
 
@@ -97,6 +101,7 @@ my sub init_cfg {
        cidr => undef,
        gateway => undef,
        dns => undef,
+       console => undef,
     };
 
     $initial = parse_kernel_cmdline($initial);
@@ -230,4 +235,8 @@ sub get_gateway { return get('gateway'); }
 sub set_dns { set_key('dns', $_[0]); }
 sub get_dns { return get('dns'); }
 
+sub set_console { set_key('console', $_[0]); }
+sub get_console { return get('console'); }
+
+
 1;