mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 23:51:28 +03:00
fstab-generator: set "ro" as default for sysroot.mount
This commit is contained in:
parent
3fb5a0feb4
commit
945d1442ed
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user