Commit 2da4d54a authored by Beniamino Galvani's avatar Beniamino Galvani

dhcp: ignore hostname when invalid

The hostname used for DHCP can be the one obtained from the hostnamed
service and is not guaranteed to be valid, at least with systemd
239. Instead of sending an invalid DHCP option to the server or
failing due to later checks in clients, ignore the hostname and log a
warning when it is invalid.

https://bugzilla.redhat.com/show_bug.cgi?id=1744427
parent 38f942e0
Pipeline #71348 failed with stages
in 44 minutes and 18 seconds