1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00

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

This commit is contained in:
Harald Hoyer 2013-03-01 17:49:06 +01:00
parent 3fb5a0feb4
commit 945d1442ed

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.