fstab-generator: read rd.fstab=on/off switch correctly

This commit is contained in:
WANG Chao 2013-08-09 17:01:50 +08:00 committed by Lennart Poettering
parent b0693d3086
commit ef53700c20
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}