Skip to content

Commit

Permalink
Fix to get and process userdata once
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Montes committed Apr 14, 2016
1 parent 1638cb5 commit 94ac50c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ int main(int argc, char *argv[]) {
datasource_handler = datasource_structs[i];
if (!datasource_handler->start()) {
result_code = EXIT_FAILURE;
} else if(first_boot_setup) {
} else {
first_boot = is_first_boot();
}
break;
Expand All @@ -300,11 +300,11 @@ int main(int argc, char *argv[]) {
async_task_run((GThreadFunc)async_fixdisk, NULL);
}

if (first_boot) {
if (first_boot_setup && first_boot) {
async_task_run((GThreadFunc)async_setup_first_boot, NULL);
}

if (first_boot) {
if (first_boot_setup && first_boot) {
/* default user will be used by ccmodules and datasources */
g_snprintf(command, LINE_MAX, USERADD_PATH
" -U -d '%s' -G '%s' -f '%s' -e '%s' -s '%s' -c '%s' -p '%s' '%s'"
Expand Down

0 comments on commit 94ac50c

Please sign in to comment.