discover: Track both configured and current autoboot settings
[petitboot] / discover / device-handler.c
index 3cf7edff082d9f6f880ccdd19c18fa698490cbce..5b7afd0d3f56d7be992d3725f757d80d2c2c412a 100644 (file)
@@ -321,7 +321,7 @@ struct device_handler *device_handler_init(struct discover_server *server,
        handler->server = server;
        handler->waitset = waitset;
        handler->dry_run = dry_run;
-       handler->autoboot_enabled = config_get()->autoboot_enabled;
+       handler->autoboot_enabled = config_autoboot_active(config_get());
 
        list_init(&handler->unresolved_boot_options);