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:
parent
84d7b7693d
commit
d9f03b387a
|
@ -2441,6 +2441,7 @@ rootbld() {
|
||||||
$SUDO_APK add --initdb --update \
|
$SUDO_APK add --initdb --update \
|
||||||
--arch $CBUILD_ARCH \
|
--arch $CBUILD_ARCH \
|
||||||
--root "$BUILD_ROOT" \
|
--root "$BUILD_ROOT" \
|
||||||
|
--cache-dir /etc/apk/cache \
|
||||||
abuild alpine-base build-base git $hostdeps $builddeps \
|
abuild alpine-base build-base git $hostdeps $builddeps \
|
||||||
${USE_CCACHE:+ccache}
|
${USE_CCACHE:+ccache}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue