aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-09-12 09:55:25 +0200
committerLudovic Courtès <ludo@gnu.org>2014-09-12 09:55:25 +0200
commit07b08343d7b5dc20c4904da2caa994dc36210b6f (patch)
tree26e0e310867dcc93bd1bb5c5f066d732f2ceef00
parent7d6a52c0dca2e2d26d8e82d1881ae824fdb2cf81 (diff)
downloadpatches-07b08343d7b5dc20c4904da2caa994dc36210b6f.tar
patches-07b08343d7b5dc20c4904da2caa994dc36210b6f.tar.gz
system: Produce a basic /etc/nsswitch.conf to honor /etc/hosts.
* gnu/system.scm (etc-directory): Produce nsswitch.conf.
-rw-r--r--gnu/system.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/system.scm b/gnu/system.scm
index 393b896335..b1445dcab7 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -291,6 +291,10 @@ This is the GNU system. Welcome.\n")
/run/current-system/profile/bin/bash\n"))
(issue (text-file "issue" issue))
+ ;; For now, generate a basic config so that /etc/hosts is honored.
+ (nsswitch (text-file "nsswitch.conf"
+ "hosts: files dns\n"))
+
;; TODO: Generate bashrc from packages' search-paths.
(bashrc (text-file* "bashrc" "
export PS1='\\u@\\h \\w\\$ '
@@ -317,6 +321,7 @@ alias ll='ls -l'
("pam.d" ,#~#$pam.d)
("login.defs" ,#~#$login.defs)
("issue" ,#~#$issue)
+ ("nsswitch.conf" ,#~#$nsswitch)
("skel" ,#~#$skel)
("shells" ,#~#$shells)
("profile" ,#~#$bashrc)