diff options
author | Roland Clobus <rclobus@rclobus.nl> | 2020-10-04 13:48:03 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2021-01-15 09:22:29 +0000 |
commit | 9712c46cff4c9fcd998cd5e0ab36f3eaea63cd87 (patch) | |
tree | 4675672598718a239d1210db8babc8ddc762d801 /scripts | |
parent | 0202f17cadeb2b369de58748cf52a5063eaafe9c (diff) | |
download | vyos-live-build-9712c46cff4c9fcd998cd5e0ab36f3eaea63cd87.tar.gz vyos-live-build-9712c46cff4c9fcd998cd5e0ab36f3eaea63cd87.zip |
Use SOURCE_DATE_EPOCH for 'now' in .disk/info
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/binary_disk | 2 | ||||
-rwxr-xr-x | scripts/build/source_disk | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/binary_disk b/scripts/build/binary_disk index 4be6aef67..21092cab9 100755 --- a/scripts/build/binary_disk +++ b/scripts/build/binary_disk @@ -109,7 +109,7 @@ case "${LB_DEBIAN_INSTALLER}" in ;; esac -_DATE="$(date $DATE_UTC_OPTION +%Y%m%d-%H:%M)" +_DATE="$(date $DATE_UTC_OPTION -d@${SOURCE_DATE_EPOCH} +%Y%m%d-%H:%M)" echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} ${DISK_LABEL} Binary ${_DATE}" > binary/.disk/info diff --git a/scripts/build/source_disk b/scripts/build/source_disk index aa370d997..70adcef6c 100755 --- a/scripts/build/source_disk +++ b/scripts/build/source_disk @@ -85,7 +85,7 @@ then esac fi -_DATE="$(date $DATE_UTC_OPTION +%Y%m%d-%H:%M)" +_DATE="$(date $DATE_UTC_OPTION -d@${SOURCE_DATE_EPOCH} +%Y%m%d-%H:%M)" case "${LB_DEBIAN_INSTALLER}" in cdrom) |