shutils/chroot.sh: update ld.so(8) before entering the chroot.

This commit is contained in:
Juan RP 2011-05-26 10:14:39 +02:00
parent 4de233e4ca
commit 80f784e0eb
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,10 @@ xbps_chroot_handler()
"cd /xbps/xbps-src && make IN_CHROOT=1 install clean" \
2>&1 >/dev/null || return $?
# Update ld.so(8) cache
msg_normal "Updating ld.so(8) cache...\n"
${chroot_cmd} $XBPS_MASTERDIR sh -c "ldconfig" || return $?
if [ "$action" = "chroot" ]; then
env in_chroot=yes IN_CHROOT=1 LANG=C PATH=$path \
${chroot_cmd} $XBPS_MASTERDIR /bin/sh || \