1
0
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:
Yu Watanabe 2024-08-14 15:39:12 +09:00 committed by Luca Boccassi
parent 74f85451cb
commit 56cc8acf45

View File

@ -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);