summaryrefslogtreecommitdiffstats
path: root/factory
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-08-17 09:10:32 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-17 18:55:59 +0200
commitd296c20f1fff6a258cc6eacd2141058daa49a1ff (patch)
treeb21001e58291ec0aaa644cf09788de9101bdf130 /factory
parenttools/make-man-index: fix purpose text that contains tags (diff)
downloadsystemd-d296c20f1fff6a258cc6eacd2141058daa49a1ff.tar.xz
systemd-d296c20f1fff6a258cc6eacd2141058daa49a1ff.zip
man: move 'files' module in NSS 'hosts:' line before myhostname
I am pretty sure /etc/hosts (i.e. an explicitly configured, local, trusted database) should be useful for overriding the automatic myhostname logic. resolved's internal logic handles it that way and hence we should suggest it in the NSS fallback line, too. Let's also bring the factory file back into sync with what the docs say. And update the prose a bit too, to actually match what we recommend.
Diffstat (limited to 'factory')
-rw-r--r--factory/etc/nsswitch.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/etc/nsswitch.conf b/factory/etc/nsswitch.conf
index da74b19d90..d87f8811ec 100644
--- a/factory/etc/nsswitch.conf
+++ b/factory/etc/nsswitch.conf
@@ -4,7 +4,7 @@ passwd: compat systemd
group: compat [SUCCESS=merge] systemd
shadow: compat
-hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
+hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
networks: files
protocols: db files