diff options
author | Erik Troan <ewt@redhat.com> | 2000-07-07 19:52:10 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-07-07 19:52:10 +0000 |
commit | a43bd2a87d70e9651f0be459cad53fabdf74f161 (patch) | |
tree | a127debfcffb32abfc3725293b40807548953fe8 /collage/commands.c | |
parent | d4977de584cc3558d2a124c278d9ed33e02eda7b (diff) | |
download | anaconda-a43bd2a87d70e9651f0be459cad53fabdf74f161.tar.gz anaconda-a43bd2a87d70e9651f0be459cad53fabdf74f161.tar.xz anaconda-a43bd2a87d70e9651f0be459cad53fabdf74f161.zip |
when a mount fails, retry w/ readonly before failing
Diffstat (limited to 'collage/commands.c')
-rw-r--r-- | collage/commands.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/collage/commands.c b/collage/commands.c index c27fae26c..3323d9631 100644 --- a/collage/commands.c +++ b/collage/commands.c @@ -122,8 +122,10 @@ int mountCommand(int argc, char ** argv) { } if (doPwMount(dev, dir, fs, 0, 1, NULL, NULL)) { - fprintf(stderr, "mount failed: %s\n", strerror(errno)); - return 1; + if (doPwMount(dev, dir, fs, 1, 1, NULL, NULL)) { + fprintf(stderr, "mount failed: %s\n", strerror(errno)); + return 1; + } } return 0; |