From 822459c7b25589f4065c25bcd8b3ab440ae0e4cd Mon Sep 17 00:00:00 2001 From: Raphaƫl Hertzog Date: Mon, 28 Nov 2016 16:29:06 +0100 Subject: Set xorriso's "modification time" to SOURCE_DATE_EPOCH Thanks to Chris Lamb for the patch. Closes: #831379 --- scripts/build/binary_iso | 3 +++ scripts/build/source_iso | 3 +++ 2 files changed, 6 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3