diff options
author | Roland Clobus <rclobus@rclobus.nl> | 2020-10-04 13:49:06 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2021-01-15 09:22:29 +0000 |
commit | 9d2405166970c02b978cef817dd15c9cec9ed615 (patch) | |
tree | 629e1e50491f6b5ae08fc255ce179493bb0ecce7 /scripts/build/binary_iso | |
parent | 95cd662f4e91438cc179a282c31a8b71ceb49715 (diff) | |
download | vyos-live-build-9d2405166970c02b978cef817dd15c9cec9ed615.tar.gz vyos-live-build-9d2405166970c02b978cef817dd15c9cec9ed615.zip |
SOURCE_DATE_EPOCH is always set
Diffstat (limited to 'scripts/build/binary_iso')
-rwxr-xr-x | scripts/build/binary_iso | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/binary_iso b/scripts/build/binary_iso index ca0b39ef3..990af86a0 100755 --- a/scripts/build/binary_iso +++ b/scripts/build/binary_iso @@ -99,12 +99,12 @@ fi if [ -n "${LB_ISO_VOLUME}" ] && [ "${LB_ISO_VOLUME}" != "none" ] then - LB_ISO_VOLUME="$(echo "${LB_ISO_VOLUME}" | sed "s|@ISOVOLUME_TS@|$(date $DATE_UTC_OPTION +%Y%m%d-%H:%M --date @${SOURCE_DATE_EPOCH:-$(date +%s)})|")" + LB_ISO_VOLUME="$(echo "${LB_ISO_VOLUME}" | sed "s|@ISOVOLUME_TS@|$(date $DATE_UTC_OPTION -d@${SOURCE_DATE_EPOCH} +%Y%m%d-%H:%M)|")" 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)" +XORRISO_OPTIONS="${XORRISO_OPTIONS} --modification-date=$(date --utc -d@${SOURCE_DATE_EPOCH} +%Y%m%d%H%M%S00)" # Enable BIOS bootloader selection case "${LB_BOOTLOADER_BIOS}" in |