Add --start-daemon option to ui programs
[petitboot] / discover / device-handler.c
index 6457dce6b68c5acf39ff8b8e5525a25b7caf9612..28889144c8f0285c3f90b0e5dd4dc4650c6f0a6f 100644 (file)
@@ -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);