rc: chase a race condition during +POST_INSTALL run

This commit is contained in:
Franco Fichtner 2016-10-24 09:13:30 +02:00
parent 909f2b134d
commit 2bc0ea0f0a
2 changed files with 6 additions and 1 deletions

View File

@ -27,6 +27,10 @@
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')) {
exit(0);
}

View File

@ -44,8 +44,9 @@ $config = parse_config();
log_error("rc.reload_all: Reloading all configuration settings.");
system_timezone_configure();
system_firmware_configure();
system_console_configure();
system_timezone_configure();
system_hostname_configure();
system_hosts_generate();
services_dhcpleases_configure();