[systemd-commits] src/fstab-generator
Harald Hoyer
harald at kemper.freedesktop.org
Fri Mar 1 08:52:40 PST 2013
src/fstab-generator/fstab-generator.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 945d1442ed5d6cf50b0d0a45fe482130f74f2997
Author: Harald Hoyer <harald at redhat.com>
Date: Fri Mar 1 17:49:06 2013 +0100
fstab-generator: set "ro" as default for sysroot.mount
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index af7276d..5c34de1 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -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.
More information about the systemd-commits
mailing list