X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=28889144c8f0285c3f90b0e5dd4dc4650c6f0a6f;hb=7bf51a6b66f47e06b3f903d60f15aedbc39130eb;hp=c72390b438d7222540b467619d6f2865117eb503;hpb=fbb2f7a20e5ac7b6d9f578fdb3538fad4310c472;p=petitboot diff --git a/discover/device-handler.c b/discover/device-handler.c index c72390b..2888914 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -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);