f1d7e902e3
The 17.1 profile changed the defaults used in portage for where we store our repo, distfiles and binpkgs. Some portage related variables need to be set deterministically. 17.1 is no enabled for Systemd's profile. Change-Id: Ib55f6875c5cb461c3c530b51d7420ce3dc8da360
18 lines
647 B
Bash
Executable file
18 lines
647 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
GENTOO_PORTAGE_DISTFILES_DIR="${DIB_IMAGE_CACHE}/gentoo/distfiles"
|
|
GENTOO_PORTAGE_PACKAGE_DIR="${DIB_IMAGE_CACHE}/gentoo/packages/${GENTOO_PROFILE}"
|
|
GENTOO_PORTAGE_DIR="${DIB_IMAGE_CACHE}/gentoo/portage"
|
|
|
|
mkdir -p "${TMP_MOUNT_PATH}${PORTDIR}"
|
|
sudo mount --bind "${GENTOO_PORTAGE_DIR}" "${TMP_MOUNT_PATH}${PORTDIR}"
|
|
mkdir -p "${TMP_MOUNT_PATH}${DISTDIR}"
|
|
sudo mount --bind "${GENTOO_PORTAGE_DISTFILES_DIR}" "${TMP_MOUNT_PATH}${DISTDIR}"
|
|
mkdir -p "${TMP_MOUNT_PATH}${PKGDIR}"
|
|
sudo mount --bind "${GENTOO_PORTAGE_PACKAGE_DIR}" "${TMP_MOUNT_PATH}${PKGDIR}"
|