diff --git a/templates/glibc.tmpl b/templates/glibc.tmpl index f2fa2a0b190..e080cb86b34 100644 --- a/templates/glibc.tmpl +++ b/templates/glibc.tmpl @@ -60,5 +60,20 @@ post_install() $destdir/usr/bin/ldd fi + # Create nsswitch.conf + ( \ + echo "passwd: files"; \ + echo "group: files"; \ + echo "shadow: files"; \ + echo; \ + echo "hosts: files dns"; \ + echo "networks: files"; \ + echo; \ + echo "protocols: files"; \ + echo "services: files"; \ + echo "ethers: files"; \ + echo "rpc: files"; \ + ) > $destdir/etc/nsswitch.conf + wrksrc=${wrksrc%%/build_obj} }