diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-08-20 10:14:22 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-08-20 10:14:44 +0800 |
commit | 815df381d55e09fd291145ef2b86729c12583366 (patch) | |
tree | 9c76855645e36b35168b98a479583d8c7370c387 /discover/pb-discover.c | |
parent | 51c6aaf7864eb65779d548ee2549caa357f71e2c (diff) | |
download | talos-petitboot-815df381d55e09fd291145ef2b86729c12583366.tar.gz talos-petitboot-815df381d55e09fd291145ef2b86729c12583366.zip |
lib/process: Add dry_run argument to process_init
Implement dry-run behaviour on the discover server by passing a bool to
process_init. UIs don't need to support dry runs.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/pb-discover.c')
-rw-r--r-- | discover/pb-discover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/pb-discover.c b/discover/pb-discover.c index 61da509..6d62e14 100644 --- a/discover/pb-discover.c +++ b/discover/pb-discover.c @@ -168,7 +168,7 @@ int main(int argc, char *argv[]) if (!server) return EXIT_FAILURE; - procset = process_init(server, waitset); + procset = process_init(server, waitset, opts.dry_run == opt_yes); if (!procset) return EXIT_FAILURE; |