From ef61aa5a9cead170fa18dba44609c32bbf18306a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 5 May 2011 19:02:44 +0000 Subject: Thu May 5 19:02:44 UTC 2011 --- community/scponly/setup_chroot.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'community/scponly/setup_chroot.sh') diff --git a/community/scponly/setup_chroot.sh b/community/scponly/setup_chroot.sh index cd1a260eb..1af9807e0 100755 --- a/community/scponly/setup_chroot.sh +++ b/community/scponly/setup_chroot.sh @@ -79,7 +79,7 @@ fi # # we also need to add some form of ld.so, here are some good guesses. # -LDSO_LIST="/lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /lib64/ld-linux-x86-64.so.2 /lib/ld-linux.so.2 /usr/libexec/ld-elf.so.1" +LDSO_LIST="/lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /lib64/ld-linux-x86-64.so.2 /lib/ld-linux-x86-64.so.2 /lib/ld-linux.so.2 /usr/libexec/ld-elf.so.1" for lib in $LDSO_LIST; do if [ -f $lib ]; then LDSOFOUND=1; @@ -95,6 +95,11 @@ if [ $? -eq 0 ]; then LIB_LIST="$LIB_LIST /lib/libnss_compat*" fi +ls /lib/libnss_files* > /dev/null 2>&1 +if [ $? -eq 0 ]; then + LIB_LIST="$LIB_LIST /lib/libnss_files*" +fi + # check that the configure options are correct for chrooted operation: if [ x/usr/sbin/useradd = x ]; then -- cgit v1.2.3-54-g00ecf