Why is myhostname added to /etc/nsswitch.conf when updating systemd
Issue
- We have to remove the
myhostname
from thensswitch.conf
to make sure the IPv4 address is returned instead of::1
, fix taken from https://access.redhat.com/solutions/1287253. But after updating thesystemd
RPM our change is undone. Thesystemd
has in it%post
hardcode that it has to add themyhostname
to the hosts line innsswitch.conf
Environment
- Red Hat Enterprise Linux 7
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.