projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drm/radeon: Init amdkfd only if it was compiled
[cascardo/linux.git]
/
init
/
do_mounts.c
diff --git
a/init/do_mounts.c
b/init/do_mounts.c
index
9b3565c
..
eb41008
100644
(file)
--- a/
init/do_mounts.c
+++ b/
init/do_mounts.c
@@
-395,8
+395,6
@@
retry:
case 0:
goto out;
case -EACCES:
case 0:
goto out;
case -EACCES:
- flags |= MS_RDONLY;
- goto retry;
case -EINVAL:
continue;
}
case -EINVAL:
continue;
}
@@
-419,6
+417,10
@@
retry:
#endif
panic("VFS: Unable to mount root fs on %s", b);
}
#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();
printk("List of all partitions:\n");
printk_all_partitions();