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 Zbigniew Jędrzejewski-Szmek
parent 81be5f2e03
commit ffc196d5b1
+2 -2
View File
@@ -596,9 +596,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;
}