summaryrefslogtreecommitdiff
path: root/scripts
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
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')
-rwxr-xr-xscripts/build/binary_iso3
-rwxr-xr-xscripts/build/source_iso3
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build/binary_iso b/scripts/build/binary_iso
index d4a872eb2..2b381622a 100755
--- a/scripts/build/binary_iso
+++ b/scripts/build/binary_iso
@@ -107,6 +107,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)"
+
OLDIFS="$IFS"
IFS=","
BOOTLOADER_NUMBER=0
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