Commit 4ad78901 authored by Franco Fichtner's avatar Franco Fichtner

rc: start loopback earlier, omits manual installer glue

parent 1d325312
...@@ -127,8 +127,13 @@ function interfaces_loopback_configure($verbose = false) ...@@ -127,8 +127,13 @@ function interfaces_loopback_configure($verbose = false)
flush(); 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_setaddress('lo0', '127.0.0.1');
interfaces_bring_up("lo0"); legacy_interface_flags('lo0', 'up');
if ($verbose) { if ($verbose) {
echo "done.\n"; echo "done.\n";
......
...@@ -67,6 +67,9 @@ system_console_mute(); ...@@ -67,6 +67,9 @@ system_console_mute();
system_devd_configure(true); system_devd_configure(true);
system_login_configure(true); system_login_configure(true);
/* loopback device is required early for syslog and the installer */
interfaces_loopback_configure(true);
$setup_installer = is_install_media(); $setup_installer = is_install_media();
if ($setup_installer) { if ($setup_installer) {
echo 'Press any key to start the early installer: '; echo 'Press any key to start the early installer: ';
...@@ -108,7 +111,6 @@ system_timezone_configure(true); ...@@ -108,7 +111,6 @@ system_timezone_configure(true);
system_firmware_configure(true); system_firmware_configure(true);
system_hostname_configure(true); system_hostname_configure(true);
system_hosts_generate(true); system_hosts_generate(true);
interfaces_loopback_configure(true);
system_syslogd_start(true); system_syslogd_start(true);
openvpn_prepare_all(true); openvpn_prepare_all(true);
......
...@@ -26,9 +26,6 @@ ...@@ -26,9 +26,6 @@
sysctl kern.geom.debugflags=16 >/dev/null sysctl kern.geom.debugflags=16 >/dev/null
sysctl net.link.ether.inet.log_arp_wrong_iface=0 >/dev/null sysctl net.link.ether.inet.log_arp_wrong_iface=0 >/dev/null
ifconfig lo0 127.0.0.1/24
ifconfig lo0 up
rm -f /tmp/install_complete rm -f /tmp/install_complete
# Start the backend in the background (must mute all the ouput) # Start the backend in the background (must mute all the ouput)
......
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