systemd のアップデート時に myhostname が /etc/nsswitch.conf に追加されるのはなぜですか?
Issue
- https://access.redhat.com/solutions/1287253 によると、
nsswitch.confからmyhostnameを削除して、::1の代わりに IPv4 アドレスが返ったことを確認する必要があります。にも関わらず、systemdRPM をアップデートすると変更が元に戻ります。systemdには%postハードコアがあり、nsswitch.confのホストの行にmyhostnameを追加する必要があります。
Environment
- Red Hat Enterprise Linux 7
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
