rootbld: add '--cache-dir' when preparing the $BUILD_ROOT

Otherwise apk will rely on defaults 'etc/apk/cache' and 'var/apk/cache'
based on new chroot directory and will delete everything when rootbld finishes.
This commit is contained in:
donoban 2021-12-24 13:53:30 +01:00 committed by Kaarle Ritvanen
parent 84d7b7693d
commit d9f03b387a
1 changed files with 1 additions and 0 deletions

View File

@ -2441,6 +2441,7 @@ rootbld() {
$SUDO_APK add --initdb --update \
--arch $CBUILD_ARCH \
--root "$BUILD_ROOT" \
--cache-dir /etc/apk/cache \
abuild alpine-base build-base git $hostdeps $builddeps \
${USE_CCACHE:+ccache}