Passing chroot directory explicitly to Apt() in preparation for multi-arch.
This commit is contained in:
parent
ed42278155
commit
d703d361fc
|
@ -10,13 +10,16 @@
|
||||||
|
|
||||||
Apt ()
|
Apt ()
|
||||||
{
|
{
|
||||||
|
CHROOT="${1}"
|
||||||
|
shift
|
||||||
|
|
||||||
case "${LB_APT}" in
|
case "${LB_APT}" in
|
||||||
apt|apt-get)
|
apt|apt-get)
|
||||||
Chroot chroot apt-get ${APT_OPTIONS} ${@}
|
Chroot ${CHROOT} apt-get ${APT_OPTIONS} ${@}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
aptitude)
|
aptitude)
|
||||||
Chroot chroot aptitude ${APTITUDE_OPTIONS} ${@}
|
Chroot ${CHROOT} aptitude ${APTITUDE_OPTIONS} ${@}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@ case "${LB_BINARY_IMAGES}" in
|
||||||
net)
|
net)
|
||||||
if [ ! -f chroot/usr/bin/smbmount ]
|
if [ ! -f chroot/usr/bin/smbmount ]
|
||||||
then
|
then
|
||||||
Apt install smbfs
|
Apt chroot install smbfs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d chroot/etc/initramfs-tools ]
|
if [ ! -d chroot/etc/initramfs-tools ]
|
||||||
|
|
|
@ -411,15 +411,15 @@ EOF
|
||||||
Chroot chroot "apt-get ${APT_OPTIONS} install aptitude"
|
Chroot chroot "apt-get ${APT_OPTIONS} install aptitude"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Apt update
|
Apt chroot update
|
||||||
Apt upgrade
|
Apt chroot upgrade
|
||||||
Apt dist-upgrade
|
Apt chroot dist-upgrade
|
||||||
|
|
||||||
# Installing keyring packages
|
# Installing keyring packages
|
||||||
if [ -n "${LB_KEYRING_PACKAGES}" ]
|
if [ -n "${LB_KEYRING_PACKAGES}" ]
|
||||||
then
|
then
|
||||||
Chroot chroot "apt-get --yes --force-yes install ${LB_KEYRING_PACKAGES}"
|
Chroot chroot "apt-get --yes --force-yes install ${LB_KEYRING_PACKAGES}"
|
||||||
Apt update
|
Apt chroot update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${LB_CACHE_INDICES}" = "true" ]
|
if [ "${LB_CACHE_INDICES}" = "true" ]
|
||||||
|
@ -625,7 +625,7 @@ EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Updating indices
|
# Updating indices
|
||||||
Apt update
|
Apt chroot update
|
||||||
|
|
||||||
# Cleaning apt package cache
|
# Cleaning apt package cache
|
||||||
rm -rf chroot/var/cache/apt
|
rm -rf chroot/var/cache/apt
|
||||||
|
|
Loading…
Reference in New Issue