X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fpb-discover.c;h=9b1f20041da7a7a764233abc4f1d3499775be2a1;hb=573a345f2e6b325d80e4040420bee0947e40ce33;hp=6def0900bc73cddf56397c67641825899e8abde1;hpb=b324b03e2b603dafddfaac607e5f98d9cd9c0f04;p=petitboot diff --git a/discover/pb-discover.c b/discover/pb-discover.c index 6def090..9b1f200 100644 --- a/discover/pb-discover.c +++ b/discover/pb-discover.c @@ -19,6 +19,7 @@ #include "discover-server.h" #include "device-handler.h" #include "network.h" +#include "sysinfo.h" static void print_version(void) { @@ -158,9 +159,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 +170,10 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; config_init(NULL); + if (opts.no_autoboot == opt_yes) + config_set_autoboot(false); + + system_info_init(server); handler = device_handler_init(server, waitset, opts.dry_run == opt_yes); if (!handler)