Commit b3c76778 authored by Franco Fichtner's avatar Franco Fichtner

rc: slightly restructure bootup and put lo0 creation back

parent 0f7c882c
......@@ -71,7 +71,7 @@ system_devd_configure(true);
system_login_configure(true);
/*
* Determine if we need to throw a interface exception
* Determine if we need to throw an interface exception
* and ask the user to reassign interfaces. This will
* avoid a reboot and thats a good thing.
*/
......@@ -80,6 +80,9 @@ if (is_interface_mismatch()) {
while (!set_networking_interfaces_ports(true));
}
/* loopback device is required early for syslog */
interfaces_loopback_configure(true);
system_kernel_configure(true);
system_sysctl_configure(true);
system_timezone_configure(true);
......@@ -110,6 +113,10 @@ services_dhcrelay6_configure(true);
prefer_ipv4_or_ipv6();
filter_configure_sync(true);
/* generate configuration data for all installed templates */
configd_run('template reload *');
/* start all registered bootup plugins */
plugins_configure('bootup', true);
/* start IPsec tunnels */
......@@ -130,9 +137,6 @@ if ($ipsec_dynamic_hosts) {
ipsec_configure_do(true);
}
// generate configuration data for all installed templates
configd_run('template reload *');
if (is_install_media()) {
/*
* Installer mode requires setting up an extra user and
......
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