diff mbox

skeleton: add /etc/nsswitch.conf

Message ID 1354468412-29281-1-git-send-email-sho@relinux.de
State Accepted
Commit 4c52ff1acfb2953f1ac40cdce4387b7d1d8cef14
Headers show

Commit Message

Stephan Hoffmann Dec. 2, 2012, 5:13 p.m. UTC
Toolchain Linaro 2012_09 and possibly other glibc based ones
rely on the existence of nsswitch.conf. If it's missing names
from /etc/hosts are not resolved and thus "localhost" is not
known.

Signed-off-by: Stephan Hoffmann <sho@relinux.de>
---
 system/skeleton/etc/nsswitch.conf |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 system/skeleton/etc/nsswitch.conf

Comments

Peter Korsgaard Dec. 3, 2012, 1 a.m. UTC | #1
>>>>> "Stephan" == Stephan Hoffmann <sho@relinux.de> writes:

 Stephan> Toolchain Linaro 2012_09 and possibly other glibc based ones
 Stephan> rely on the existence of nsswitch.conf. If it's missing names
 Stephan> from /etc/hosts are not resolved and thus "localhost" is not
 Stephan> known.

Committed, thanks.
diff mbox

Patch

diff --git a/system/skeleton/etc/nsswitch.conf b/system/skeleton/etc/nsswitch.conf
new file mode 100644
index 0000000..d81e2f0
--- /dev/null
+++ b/system/skeleton/etc/nsswitch.conf
@@ -0,0 +1,17 @@ 
+# /etc/nsswitch.conf
+#
+# Example configuration of GNU Name Service Switch functionality.
+# If you have the `glibc-doc-reference' and `info' packages installed, try:
+# `info libc "Name Service Switch"' for information about this file.
+
+passwd:         files
+group:          files
+shadow:         files
+hosts:          files dns
+networks:       files
+
+protocols:      files
+services:       files
+ethers:         files
+rpc:            files
+