fix: set TMPDIR=/var/tmp to avoid tmpfs overflow during mkinitfs
This commit is contained in:
@@ -97,8 +97,10 @@ cp "${BUILDER_DIR}/mkimg.bee_debug.sh" "${HOME}/.mkimage/"
|
|||||||
# Export overlay dir so the profile script can find it regardless of SRCDIR.
|
# Export overlay dir so the profile script can find it regardless of SRCDIR.
|
||||||
export BEE_OVERLAY_DIR="${OVERLAY_DIR}"
|
export BEE_OVERLAY_DIR="${OVERLAY_DIR}"
|
||||||
|
|
||||||
# mkimage.sh uses git internally; run from /tmp to avoid conflicts with bee repo.
|
# Run from /var/tmp to avoid git repo context conflicts and to ensure enough scratch space.
|
||||||
cd /tmp
|
# mkinitfs/update-kernel use TMPDIR for initramfs build; tmpfs /tmp is only ~1GB.
|
||||||
|
export TMPDIR=/var/tmp
|
||||||
|
cd /var/tmp
|
||||||
sh /usr/share/aports/scripts/mkimage.sh \
|
sh /usr/share/aports/scripts/mkimage.sh \
|
||||||
--tag "v${ALPINE_VERSION}" \
|
--tag "v${ALPINE_VERSION}" \
|
||||||
--outdir "${DIST_DIR}" \
|
--outdir "${DIST_DIR}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user