summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWANG Chao <chaowang@redhat.com>2013-08-09 17:01:50 +0800
committerLennart Poettering <lennart@poettering.net>2013-08-09 18:09:44 +0200
commitef53700c20b0fc51dbdedfb4a611fe6ca8411df9 (patch)
tree836f52df6d79f329770eb144e829a74f00825cd2
parentb0693d30863a36da63d2a2732aa298fff6d34d0d (diff)
fstab-generator: read rd.fstab=on/off switch correctly
-rw-r--r--src/fstab-generator/fstab-generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index 87b17cd365..5a2074ec7f 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -600,9 +600,9 @@ static int parse_proc_cmdline(void) {
} else if (startswith(word, "rd.fstab=")) {
if (in_initrd()) {
- r = parse_boolean(word + 6);
+ r = parse_boolean(word + 9);
if (r < 0)
- log_warning("Failed to parse fstab switch %s. Ignoring.", word + 6);
+ log_warning("Failed to parse fstab switch %s. Ignoring.", word + 9);
else
arg_enabled = r;
}