- config->lang = NULL;
-
- config->n_boot_priorities = 2;
- config->boot_priorities = talloc_array(config, struct boot_priority,
- config->n_boot_priorities);
- config->boot_priorities[0].type = DEVICE_TYPE_NETWORK;
- config->boot_priorities[0].priority = 2;
- config->boot_priorities[1].type = DEVICE_TYPE_DISK;
- config->boot_priorities[1].priority = 1;
+ config->allow_writes = true;
+ config->disable_snapshots = false;
+
+ config->n_tty = 0;
+ config->tty_list = NULL;
+ config->boot_tty = NULL;
+
+ config->n_autoboot_opts = 2;
+ config->autoboot_opts = talloc_array(config, struct autoboot_option,
+ config->n_autoboot_opts);
+ config->autoboot_opts[0].boot_type = BOOT_DEVICE_TYPE;
+ config->autoboot_opts[0].type = DEVICE_TYPE_NETWORK;
+ config->autoboot_opts[1].boot_type = BOOT_DEVICE_TYPE;
+ config->autoboot_opts[1].type = DEVICE_TYPE_ANY;
+
+ config->ipmi_bootdev = 0;
+ config->ipmi_bootdev_persistent = false;
+
+ config->debug = config_debug_on_cmdline();
+
+ lang = setlocale(LC_ALL, NULL);
+ pb_log("lang: %s\n", lang);
+ if (lang && strlen(lang))
+ config->lang = talloc_strdup(config, lang);
+ else
+ config->lang = NULL;
+