From 27fd0fd8f6ca6a7f7b03819571933119a98ed700 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 18 Sep 2018 19:01:40 +0200 Subject: [PATCH] quirks/nss.sh: fix nsswitch.conf --- quirks/nss.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quirks/nss.sh b/quirks/nss.sh index 1f39d64..6a796dd 100644 --- a/quirks/nss.sh +++ b/quirks/nss.sh @@ -1,6 +1,9 @@ #!/usr/bin/bash -ex -sed -i -e 's#^\(passwd:.*\) files#\1 files db altfile#g;s#^\(shadow:.*\) files#\1 files altfiles db#g;s#^\(group:.*\) files#\1 files altfiles db#g' \ +# rpcbind only accepts "files altfiles" +# altfiles has no shadow/gshadow support, therefore we need db + +sed -i -e 's#^\(passwd:.*\) files#\1 files altfiles db#g;s#^\(shadow:.*\) files#\1 files altfiles db#g;s#^\(group:.*\) files#\1 files altfiles db#g' \ "$sysroot"/etc/nsswitch.conf mkdir -p "$sysroot"/usr/db sed -i -e 's#/var/db#/usr/db#g' "$sysroot"/lib*/libnss_db-2*.so "$sysroot"/var/db/Makefile