make_mirror.sh: export SOURCE_DATE_EPOCH for debootstrap

This commit is contained in:
Johannes 'josch' Schauer 2018-12-27 14:39:29 +01:00
parent 076d035f65
commit 131a39d633
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -256,6 +256,7 @@ for dist in stable testing unstable; do
#!/bin/sh
set -eu
export LC_ALL=C.UTF-8
export SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH
debootstrap --no-merged-usr --variant=$variant $dist /tmp/debian-$dist-debootstrap $mirror
tar --sort=name --mtime=@$SOURCE_DATE_EPOCH --clamp-mtime --numeric-owner --one-file-system -C /tmp/debian-$dist-debootstrap -c . > "cache/debian-$dist-$variant.tar"
rm -r /tmp/debian-$dist-debootstrap