mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
fstab-generator: read rd.fstab=on/off switch correctly
This commit is contained in:
parent
b0693d3086
commit
ef53700c20
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user