fstab-generator: set "ro" as default for sysroot.mount

This commit is contained in:
Harald Hoyer
2013-03-01 17:52:05 +01:00
parent 3fb5a0feb4
commit 945d1442ed
+2 -1
View File
@@ -449,8 +449,9 @@ static int parse_new_root_from_proc_cmdline(void) {
return 0;
}
opts = strdup("ro");
type = strdup("auto");
if (!type)
if (!opts || !type)
return log_oom();
/* root= and roofstype= may occur more than once, the last instance should take precedence.