mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
gpt-auto-generator: properly ignore value
A negative return code was treated as a true value.
This commit is contained in:
@@ -680,8 +680,8 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
|
||||
r = parse_boolean(value);
|
||||
if (r < 0)
|
||||
log_warning("Failed to parse gpt-auto switch %s. Ignoring.", value);
|
||||
|
||||
arg_enabled = r;
|
||||
else
|
||||
arg_enabled = r;
|
||||
|
||||
} else if (streq(key, "root") && value) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user