diff options
author | Geoff Levand <geoff@infradead.org> | 2012-03-08 20:48:21 -0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2012-03-08 20:51:37 -0800 |
commit | 604a1ccf072f9f33326fb6dc919c1b6233d40866 (patch) | |
tree | 88297738af995f9ea8df78e134d0a2dac111d157 /discover | |
parent | ae0ba68f475ae5b057aad6538765bc8702134b9a (diff) | |
download | talos-petitboot-604a1ccf072f9f33326fb6dc919c1b6233d40866.tar.gz talos-petitboot-604a1ccf072f9f33326fb6dc919c1b6233d40866.zip |
Add --start-daemon option to ui programs
Add the option --start-daemon to automatically start
pb-discover if it is not already started. For use
when running as a stand-alone app.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover')
-rw-r--r-- | discover/device-handler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c index 6457dce..2888914 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -201,10 +201,10 @@ static int mount_device(struct discover_context *ctx) argv[4] = "ro"; argv[5] = NULL; - if (pb_run_cmd(argv)) + if (pb_run_cmd(argv, 1)) argv[3] = NULL; /* try without ro */ - if (pb_run_cmd(argv)) + if (pb_run_cmd(argv, 1)) goto out_rmdir; setup_device_links(ctx); |