From 945d1442ed5d6cf50b0d0a45fe482130f74f2997 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 1 Mar 2013 17:49:06 +0100 Subject: fstab-generator: set "ro" as default for sysroot.mount --- src/fstab-generator/fstab-generator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index af7276daa7..5c34de1155 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. -- cgit v1.2.3-54-g00ecf