X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=init%2Fdo_mounts.c;h=eb410083e8e075f9ca1829d0db1bf3cb70d17139;hb=a51e0df4c1e06afd7aba84496c14238e6b363caa;hp=9b3565c41502af7bd9198f9a378c3a5cc7562423;hpb=3d0f8536cd24079a68a53266517f6ab85d7d6f5b;p=cascardo%2Flinux.git diff --git a/init/do_mounts.c b/init/do_mounts.c index 9b3565c41502..eb410083e8e0 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -395,8 +395,6 @@ retry: case 0: goto out; case -EACCES: - flags |= MS_RDONLY; - goto retry; case -EINVAL: continue; } @@ -419,6 +417,10 @@ retry: #endif panic("VFS: Unable to mount root fs on %s", b); } + if (!(flags & MS_RDONLY)) { + flags |= MS_RDONLY; + goto retry; + } printk("List of all partitions:\n"); printk_all_partitions();