diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2016-11-28 16:29:06 +0100 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2016-11-28 20:58:19 +0100 |
commit | 822459c7b25589f4065c25bcd8b3ab440ae0e4cd (patch) | |
tree | d28c88676dfb4bc9730e8ab82ca34779a5aa4006 /scripts/build/source_iso | |
parent | 4b28b409a64166946dd9b27b4e56c2d206d958ac (diff) | |
download | vyos-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-x | scripts/build/source_iso | 3 |
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 |