diff options
author | Geoff Levand <geoff@infradead.org> | 2013-07-23 13:30:19 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-07-23 13:49:23 -0700 |
commit | 37d865eb008f746a0b013557312c6b44c7236eb7 (patch) | |
tree | 2551788b9617030b8a058fd70f9da3129220892e /discover/pb-discover.c | |
parent | e5f5a2e91e89af08925b6dae3680fc9ef62190ff (diff) | |
download | talos-petitboot-37d865eb008f746a0b013557312c6b44c7236eb7.tar.gz talos-petitboot-37d865eb008f746a0b013557312c6b44c7236eb7.zip |
discover: Hookup --no-autoboot to config
Add new routine config_set_autoboot(), and use it to set
the --no-autoboot option.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/pb-discover.c')
-rw-r--r-- | discover/pb-discover.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/pb-discover.c b/discover/pb-discover.c index 007e66f..8ab2849 100644 --- a/discover/pb-discover.c +++ b/discover/pb-discover.c @@ -157,6 +157,9 @@ int main(int argc, char *argv[]) config_init(NULL); + if (opts.no_autoboot == opt_yes) + config_set_autoboot(false); + waitset = waitset_create(NULL); server = discover_server_init(waitset); |