xbps-src: reinstall xbps-src any time we are entering into the chroot.
This commit is contained in:
parent
ceefb18bff
commit
148f1d5db5
1 changed files with 5 additions and 7 deletions
|
@ -258,13 +258,11 @@ xbps_chroot_handler()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reinstall xbps-src in the chroot
|
# Reinstall xbps-src in the chroot
|
||||||
if [ ! -f $XBPS_MASTERDIR/usr/local/sbin/xbps-src ]; then
|
msg_normal "Installing xbps-src in the masterdir..."
|
||||||
msg_normal "Installing xbps-src in the masterdir..."
|
env in_chroot=yes LANG=C PATH=$path \
|
||||||
env in_chroot=yes LANG=C PATH=$path \
|
${chroot_cmd} $XBPS_MASTERDIR sh -c \
|
||||||
${chroot_cmd} $XBPS_MASTERDIR sh -c \
|
"cd /xbps/xbps-src && make IN_CHROOT=1 install clean" \
|
||||||
"cd /xbps/xbps-src && make IN_CHROOT=1 install clean" \
|
2>&1 >/dev/null || return $?
|
||||||
2>&1 >/dev/null || return $?
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$action" = "chroot" ]; then
|
if [ "$action" = "chroot" ]; then
|
||||||
env in_chroot=yes IN_CHROOT=1 LANG=C PATH=$path \
|
env in_chroot=yes IN_CHROOT=1 LANG=C PATH=$path \
|
||||||
|
|
Loading…
Reference in a new issue