fix(coreos-base/coreos-base): Include default nsswitch.conf

Until we start installing glibc like sane people we need to include this
via other means. Without it name resolution behavior is somewhat surprising.
This commit is contained in:
Michael Marineau 2013-07-27 13:18:31 -04:00
parent ec9ee86139
commit 6f7ec78b85
3 changed files with 27 additions and 0 deletions

View File

@ -125,6 +125,9 @@ src_install() {
# Insert empty fstab # Insert empty fstab
doins "${FILESDIR}"/fstab doins "${FILESDIR}"/fstab
# Insert glibc's nsswitch.conf since that is installed weirdly
doins "${FILESDIR}"/nsswitch.conf
# Symlink /etc/localtime to something on the stateful partition, which we # Symlink /etc/localtime to something on the stateful partition, which we
# can then change around at runtime. # can then change around at runtime.
dosym /var/lib/timezone/localtime /etc/localtime || die dosym /var/lib/timezone/localtime /etc/localtime || die

View File

@ -0,0 +1,24 @@
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/nsswitch.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $
passwd: compat
shadow: compat
group: compat
# passwd: db files nis
# shadow: db files nis
# group: db files nis
hosts: files dns
networks: files dns
services: db files
protocols: db files
rpc: db files
ethers: db files
netmasks: files
netgroup: files
bootparams: files
automount: files
aliases: files