summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Clobus <rclobus@rclobus.nl>2020-10-08 22:17:42 +0200
committerLuca Boccassi <bluca@debian.org>2021-01-15 09:22:29 +0000
commit5636820be5ee2d247cba30876fc67ae27f295ed8 (patch)
tree27651d28db7be564f405278a622331f49826de08
parent15fab34ea2e154cee5e6d53da7f5c80b300ca77f (diff)
downloadvyos-live-build-5636820be5ee2d247cba30876fc67ae27f295ed8.tar.gz
vyos-live-build-5636820be5ee2d247cba30876fc67ae27f295ed8.zip
Set timestamp in embedded files of the installer
-rwxr-xr-xscripts/build/installer_debian-installer6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer
index b40b15c6e..6ef511a2d 100755
--- a/scripts/build/installer_debian-installer
+++ b/scripts/build/installer_debian-installer
@@ -467,6 +467,7 @@ EOF
rm -f chroot/binary.sh
mv chroot/root/binary ./
+ touch "binary/${INDICE_DIR}/Packages" -d@${SOURCE_DATE_EPOCH}
gzip -9 -c "binary/${INDICE_DIR}/Packages" > "binary/${INDICE_DIR}/Packages.gz"
# Fetching release
@@ -674,6 +675,7 @@ EOF
mv chroot/root/binary.udeb ./
cd binary.udeb
+ touch "${UDEB_INDICE_DIR}/Packages" -d@${SOURCE_DATE_EPOCH}
gzip -9 -c "${UDEB_INDICE_DIR}/Packages" > "${UDEB_INDICE_DIR}/Packages.gz"
rm -f Packages* exclude
@@ -714,10 +716,10 @@ cd /root/binary && apt-ftparchive \
-o APT::FTPArchive::Release::Suite="${_SUITE}" \
${_LB_APT_VERSION_OPT} \
-o APT::FTPArchive::Release::Codename="${LB_PARENT_DISTRIBUTION_BINARY}" \
- -o APT::FTPArchive::Release::Date="$(date -R)" \
+ -o APT::FTPArchive::Release::Date="$(date -R ${DATE_UTC_OPTION} -d@${SOURCE_DATE_EPOCH})" \
-o APT::FTPArchive::Release::Architectures="${LB_ARCHITECTURE}" \
-o APT::FTPArchive::Release::Components="${LB_PARENT_ARCHIVE_AREAS}" \
- -o APT::FTPArchive::Release::Description="Last updated: $(date -R)" \
+ -o APT::FTPArchive::Release::Description="Last updated: $(date -R ${DATE_UTC_OPTION} -d@${SOURCE_DATE_EPOCH})" \
release dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION} > dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/Release
EOF