summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-08 17:41:15 -0800
committerGeoff Levand <geoff@infradead.org>2012-03-08 20:51:14 -0800
commitcff3fbc80d5b4dc473d724ac824376973c9ca1e7 (patch)
treee7b515c3e19cdca4866bb75dfc1749310ac4d64b
parenta58922346e06b827d4a81a33ce90f923dc103fde (diff)
downloadtalos-petitboot-cff3fbc80d5b4dc473d724ac824376973c9ca1e7.tar.gz
talos-petitboot-cff3fbc80d5b4dc473d724ac824376973c9ca1e7.zip
Retry device mount without 'ro' option
Signed-off-by: Geoff Levand <geoff@infradead.org>
-rw-r--r--discover/device-handler.c3
1 files changed, 3 insertions, 0 deletions
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
@@ -202,6 +202,9 @@ static int mount_device(struct discover_context *ctx)
argv[5] = NULL;
if (pb_run_cmd(argv))
+ argv[3] = NULL; /* try without ro */
+
+ if (pb_run_cmd(argv))
goto out_rmdir;
setup_device_links(ctx);
OpenPOWER on IntegriCloud