Added a check of release to use the good path for libnss.
This commit is contained in:
parent
879c6d4ffb
commit
8188f83d66
|
@ -6,7 +6,18 @@ chrootdir=$1
|
||||||
# TODO: better detection of amd64 arch
|
# TODO: better detection of amd64 arch
|
||||||
cp -f /lib/ld-linux.so.2 $chrootdir/lib/ 2>/dev/null \
|
cp -f /lib/ld-linux.so.2 $chrootdir/lib/ 2>/dev/null \
|
||||||
|| cp -f /lib64/ld-linux-x86-64.so.2 $chrootdir/lib64/
|
|| cp -f /lib64/ld-linux-x86-64.so.2 $chrootdir/lib64/
|
||||||
cp /lib/x86_64-linux-gnu/libnss* $chrootdir/lib/x86_64-linux-gnu/
|
|
||||||
|
release=$(lsb_release -s -c)
|
||||||
|
if [ "$release" = "squeeze" ]; then
|
||||||
|
cp /lib/libnss* $chrootdir/lib/
|
||||||
|
else
|
||||||
|
if [ "$release" = "wheezy" ]; then
|
||||||
|
cp /lib/x86_64-linux-gnu/libnss* $chrootdir/lib/x86_64-linux-gnu/
|
||||||
|
else
|
||||||
|
# Others? Not tested...
|
||||||
|
cp /lib/x86_64-linux-gnu/libnss* $chrootdir/lib/x86_64-linux-gnu/
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
for dbin in /bin/bash /bin/cat /bin/chown /bin/mknod /bin/rm \
|
for dbin in /bin/bash /bin/cat /bin/chown /bin/mknod /bin/rm \
|
||||||
/bin/sed /bin/sh /bin/uname /bin/mount /usr/bin/rsync /usr/sbin/sshd \
|
/bin/sed /bin/sh /bin/uname /bin/mount /usr/bin/rsync /usr/sbin/sshd \
|
||||||
|
|
Loading…
Reference in a new issue