If ECL picks up a config on the first boot post-install, trigger a package sync and don't run the wizard.

(cherry picked from commit 695f7d5c05)
(cherry picked from commit 661c5b7f6a)
(cherry picked from commit 7d9248c159)
This commit is contained in:
jim-p 2017-10-06 13:06:07 -04:00
parent c604b5713f
commit 05c4198655

View File

@ -184,6 +184,11 @@ function find_config_xml() {
backup_config();
echo "Restoring [{$slice}] {$config_location}...\n";
restore_backup($config_location);
if (file_exists('/cf/conf/trigger_initial_wizard')) {
echo "First boot after install, setting flag for package sync and disabling wizard...\n";
touch('/cf/conf/needs_package_sync');
@unlink('/cf/conf/trigger_initial_wizard');
}
echo "Cleaning up...\n";
exec("/sbin/umount /tmp/mnt/cf");
exit;