build_sysext: Set SOURCE_DATE_EPOCH for reproducibility

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2024-03-11 09:47:13 +00:00
parent fa418896eb
commit 54c8545eec

View File

@ -221,6 +221,9 @@ for package; do
"${package}"
done
# Make squashfs generation more reproducible.
export SOURCE_DATE_EPOCH=$(stat -c '%Y' "${BUILD_DIR}/fs-root/usr/lib/os-release")
# Unmount in order to get rid of the overlay
umount "${BUILD_DIR}/install-root"
umount "${BUILD_DIR}/fs-root"