From d70dad0ac9fe774361f1cfc0aab44d1502443a4e Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sat, 7 Mar 2020 23:36:56 +0100 Subject: [PATCH] make_mirror.sh: export SOURCE_DATE_EPOCH for more reproducible disk images --- make_mirror.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make_mirror.sh b/make_mirror.sh index 9d1e777..8db8a81 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -412,6 +412,8 @@ cleanuptmpdir() { rmdir "$tmpdir" } +export SOURCE_DATE_EPOCH=$(date --date="$(grep-dctrl -s Date -n '' "$newmirrordir/dists/unstable/Release")" +%s) + if [ "$HAVE_QEMU" = "yes" ]; then # We must not use any --dpkgopt here because any dpkg options still # leak into the chroot with chrootless mode. @@ -549,7 +551,6 @@ END fi mirror="http://127.0.0.1/debian" -SOURCE_DATE_EPOCH=$(date --date="$(grep-dctrl -s Date -n '' "$newmirrordir/dists/unstable/Release")" +%s) for dist in stable testing unstable; do for variant in minbase buildd -; do echo running debootstrap --no-merged-usr --variant=$variant $dist /tmp/debian-$dist-debootstrap $mirror