Commit 0e5249ed authored by Leigh B Stoller's avatar Leigh B Stoller

Add the console setup code from the mfs install phase script.

parent a83efb42
......@@ -169,6 +169,19 @@ sub LocalizeBSD()
}
};
#
# Map from $NODECONSOLE to config setting.
#
my %consmap = (
"sio" => "com",
"sio2" => "com",
"vga" => "vid",
"null" => "null"
);
if (!exists($consmap{$NODECONSOLE})) {
fatal("Do not know what to do with console: $NODECONSOLE");
}
#
# Work on a copy.
#
......@@ -222,6 +235,10 @@ sub LocalizeBSD()
== 0 or goto bad;
ExecQuiet("echo '$passhash' | $PW -V $mpoint/etc usermod root -H 0")
== 0 or goto bad;
# Localize the console to use.
my $consdev = $consmap{$NODECONSOLE} . "console";
ExecQuiet("echo 'console=\"$consdev\"' >> loader.conf.orig")
== 0 or goto bad;
#
# XXX tmp hack.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment