discover/device-handler: hook up autoboot_enabled config var
authorJeremy Kerr <jk@ozlabs.org>
Tue, 2 Jul 2013 03:24:10 +0000 (11:24 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 2 Jul 2013 03:44:20 +0000 (11:44 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c

index d2a3f16757ed9433baaee15d207667190ea33634..a6dbf63e88a07635575e93c24473d3fd24eed9c5 100644 (file)
@@ -7,6 +7,7 @@
 #include <sys/stat.h>
 #include <sys/wait.h>
 
+#include <pb-config/pb-config.h>
 #include <talloc/talloc.h>
 #include <list/list.h>
 #include <log/log.h>
@@ -292,7 +293,7 @@ struct device_handler *device_handler_init(struct discover_server *server,
        handler->waitset = waitset;
        handler->dry_run = dry_run;
        handler->default_boot_option = NULL;
-       handler->default_enabled = true;
+       handler->default_enabled = config_get()->autoboot_enabled;
        list_init(&handler->unresolved_boot_options);
 
        /* set up our mount point base */