mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08: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