diff options
author | Roland Clobus <rclobus@rclobus.nl> | 2021-01-02 17:41:50 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2021-01-15 09:22:29 +0000 |
commit | 91e1e65c873291d11495730d8ce6df5940706c2b (patch) | |
tree | 98a1571299f411b85e92cee9e76ad4e5e203d822 /scripts/build/binary_iso | |
parent | 5636820be5ee2d247cba30876fc67ae27f295ed8 (diff) | |
download | vyos-live-build-91e1e65c873291d11495730d8ce6df5940706c2b.tar.gz vyos-live-build-91e1e65c873291d11495730d8ce6df5940706c2b.zip |
Apply SOURCE_DATE_EPOCH to newly generated files and create a log
Diffstat (limited to 'scripts/build/binary_iso')
-rwxr-xr-x | scripts/build/binary_iso | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/binary_iso b/scripts/build/binary_iso index 990af86a0..5008d382a 100755 --- a/scripts/build/binary_iso +++ b/scripts/build/binary_iso @@ -176,6 +176,8 @@ mkdir -p binary/.disk cat <<-EOF >binary/.disk/mkisofs xorriso -as mkisofs ${XORRISO_OPTIONS} -o ${IMAGE} binary EOF +# Set the timestamp +find binary/.disk -newermt "$(date -d@${SOURCE_DATE_EPOCH} '+%Y-%m-%d %H:%M:%S')" -printf "%y %p\n" -exec touch '{}' -d@${SOURCE_DATE_EPOCH} ';' >> binary.modified_timestamps case "${LB_BUILD_WITH_CHROOT}" in true) |