summaryrefslogtreecommitdiff
path: root/scripts/build/source_iso
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2016-11-28 16:29:06 +0100
committerRaphaël Hertzog <hertzog@debian.org>2016-11-28 20:58:19 +0100
commit822459c7b25589f4065c25bcd8b3ab440ae0e4cd (patch)
treed28c88676dfb4bc9730e8ab82ca34779a5aa4006 /scripts/build/source_iso
parent4b28b409a64166946dd9b27b4e56c2d206d958ac (diff)
downloadvyos-live-build-822459c7b25589f4065c25bcd8b3ab440ae0e4cd.tar.gz
vyos-live-build-822459c7b25589f4065c25bcd8b3ab440ae0e4cd.zip
Set xorriso's "modification time" to SOURCE_DATE_EPOCH
Thanks to Chris Lamb <lamby@debian.org> for the patch. Closes: #831379
Diffstat (limited to 'scripts/build/source_iso')
-rwxr-xr-xscripts/build/source_iso3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/source_iso b/scripts/build/source_iso
index 0a8848d53..c280d30be 100755
--- a/scripts/build/source_iso
+++ b/scripts/build/source_iso
@@ -98,6 +98,9 @@ then
XORRISO_OPTIONS="${XORRISO_OPTIONS} -V \"${LB_ISO_VOLUME}\""
fi
+# Set an explicit modification date
+XORRISO_OPTIONS="${XORRISO_OPTIONS} --modification-date=$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m%d%H%m%S00)"
+
# Moving image
mv source chroot