Set xorriso's "modification time" to SOURCE_DATE_EPOCH

Thanks to Chris Lamb <lamby@debian.org> for the patch.

Closes: #831379
This commit is contained in:
Raphaël Hertzog 2016-11-28 16:29:06 +01:00
parent 4b28b409a6
commit 822459c7b2
3 changed files with 8 additions and 0 deletions

2
debian/changelog vendored
View File

@ -23,6 +23,8 @@ live-build (1:20160105) UNRELEASED; urgency=medium
Thanks to Erik Cumps <erik.cumps@esaturnus.com> for the patch.
* Export SOURCE_DATE_EPOCH when running chroot commands. Closes: #832998
Thanks to Chris Lamb <lamby@debian.org> for the patch.
* Set xorriso's "modification time" to SOURCE_DATE_EPOCH. Closes: #831379
Thanks to Chris Lamb <lamby@debian.org> for the patch.
[ Kristian Klausen ]
* Include ext{3,4} journal size when calculating image size. Closes: #801712

View File

@ -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

View File

@ -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