mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
network-generator: drop wrong warning for rd.peerdns without value
(cherry picked from commit 2a774f064815573efc33d43dfe3548590e42e9c2)
This commit is contained in:
parent
74f85451cb
commit
56cc8acf45
@ -956,10 +956,7 @@ static int parse_cmdline_rd_peerdns(Context *context, const char *key, const cha
|
||||
assert(context);
|
||||
assert(key);
|
||||
|
||||
if (proc_cmdline_value_missing(key, value))
|
||||
return network_set_dhcp_use_dns(context, "", true);
|
||||
|
||||
r = parse_boolean(value);
|
||||
r = value ? parse_boolean(value) : true;
|
||||
if (r < 0)
|
||||
return log_debug_errno(r, "Invalid boolean value '%s'", value);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user