Commit 2bc0ea0f authored by Franco Fichtner's avatar Franco Fichtner

rc: chase a race condition during +POST_INSTALL run

parent 909f2b13
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
/* there seems to be a race with unpacking files */
shell_exec('/bin/sync');
/* abort in case of no valid config for image install */
if (!file_exists('/conf/config.xml')) { if (!file_exists('/conf/config.xml')) {
exit(0); exit(0);
} }
......
...@@ -44,8 +44,9 @@ $config = parse_config(); ...@@ -44,8 +44,9 @@ $config = parse_config();
log_error("rc.reload_all: Reloading all configuration settings."); log_error("rc.reload_all: Reloading all configuration settings.");
system_timezone_configure();
system_firmware_configure(); system_firmware_configure();
system_console_configure();
system_timezone_configure();
system_hostname_configure(); system_hostname_configure();
system_hosts_generate(); system_hosts_generate();
services_dhcpleases_configure(); services_dhcpleases_configure();
......
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