]> git.ozlabs.org Git - petitboot/blobdiff - discover/device-handler.c
Add --start-daemon option to ui programs
[petitboot] / discover / device-handler.c
index c72390b438d7222540b467619d6f2865117eb503..28889144c8f0285c3f90b0e5dd4dc4650c6f0a6f 100644 (file)
@@ -201,7 +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, 1))
                goto out_rmdir;
 
        setup_device_links(ctx);