diff --git a/debian/changelog b/debian/changelog index c1d768585..d0adf37a6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -23,6 +23,8 @@ live-build (1:20160105) UNRELEASED; urgency=medium Thanks to Erik Cumps for the patch. * Export SOURCE_DATE_EPOCH when running chroot commands. Closes: #832998 Thanks to Chris Lamb for the patch. + * Set xorriso's "modification time" to SOURCE_DATE_EPOCH. Closes: #831379 + Thanks to Chris Lamb for the patch. [ Kristian Klausen ] * Include ext{3,4} journal size when calculating image size. Closes: #801712 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