rc: wrap this around for consistency

Early installer is really about an untained system, so
we defer *all* system setup and only keep the loopback
configuration above it.  This way, after config import
from the installer system_login_configure() is up-to-date.
This commit is contained in:
Franco Fichtner 2016-12-17 16:49:28 +01:00
parent 4ad78901d6
commit 8cfbc3c218
2 changed files with 4 additions and 8 deletions

View File

@ -127,11 +127,6 @@ function interfaces_loopback_configure($verbose = false)
flush();
}
/*
* This function is called very early, we must
* make sure the config is not required.
*/
legacy_interface_setaddress('lo0', '127.0.0.1');
legacy_interface_flags('lo0', 'up');

View File

@ -2,6 +2,7 @@
<?php
/*
Copyright (C) 2014-2016 Franco Fichtner <franco@opnsense.org>
Copyright (C) 2004-2009 Scott Ullrich <sullrich@pfsense.org>.
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
Copyright (C) 2009 Erik Kristensen
@ -64,9 +65,6 @@ echo "done.\n";
*/
system_console_mute();
system_devd_configure(true);
system_login_configure(true);
/* loopback device is required early for syslog and the installer */
interfaces_loopback_configure(true);
@ -95,6 +93,9 @@ global $config;
$config = parse_config(true);
convert_config();
system_devd_configure(true);
system_login_configure(true);
/*
* Determine if we need to throw a interface exception
* and ask the user to reassign interfaces. This will