summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
Diffstat (limited to 'discover')
-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