X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fpb-discover.c;h=ccd1c7daba597441c9df3dac3e67f89ed2aeab50;hp=6def0900bc73cddf56397c67641825899e8abde1;hb=96eedc649c8c0909a564787afebcfbe0588fd651;hpb=b324b03e2b603dafddfaac607e5f98d9cd9c0f04 diff --git a/discover/pb-discover.c b/discover/pb-discover.c index 6def090..ccd1c7d 100644 --- a/discover/pb-discover.c +++ b/discover/pb-discover.c @@ -158,9 +158,6 @@ int main(int argc, char *argv[]) signal(SIGINT, sigint_handler); - if (opts.no_autoboot == opt_yes) - config_set_autoboot(false); - waitset = waitset_create(NULL); server = discover_server_init(waitset); @@ -172,6 +169,8 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; config_init(NULL); + if (opts.no_autoboot == opt_yes) + config_set_autoboot(false); handler = device_handler_init(server, waitset, opts.dry_run == opt_yes); if (!handler)