From cff3fbc80d5b4dc473d724ac824376973c9ca1e7 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Thu, 8 Mar 2012 17:41:15 -0800 Subject: [PATCH] Retry device mount without 'ro' option Signed-off-by: Geoff Levand --- discover/device-handler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discover/device-handler.c b/discover/device-handler.c index c72390b..6457dce 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -201,6 +201,9 @@ static int mount_device(struct discover_context *ctx) argv[4] = "ro"; argv[5] = NULL; + if (pb_run_cmd(argv)) + argv[3] = NULL; /* try without ro */ + if (pb_run_cmd(argv)) goto out_rmdir; -- 2.39.2