build_toolchains: Create /tmp in root overlay with correct permissions

Otherwise the "portage" user cannot write there, causing build failures.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2026-03-18 23:19:11 +00:00 committed by Krzesimir Nowak
parent ecaeb46687
commit bcdd3950f6

View File

@ -51,7 +51,7 @@ ROOT_OVERLAY="${TEMPDIR}/stage4-${ARCH}-$FLAGS_version-overlay"
# toolchain_util.sh and break_dep_loop.sh are required by
# catalyst_toolchains.sh
mkdir -p "${ROOT_OVERLAY}/tmp"
mkdir -p -m1777 "${ROOT_OVERLAY}/tmp"
cp "${BUILD_LIBRARY_DIR}/toolchain_util.sh" "${BUILD_LIBRARY_DIR}/break_dep_loop.sh" "${ROOT_OVERLAY}/tmp"
create_provenance_overlay "${ROOT_OVERLAY}"