diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-12-22 20:25:34 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-12-22 20:25:34 +0100 |
commit | 683f48302fa6188dcb49bbbcdfeac83ecef9a43c (patch) | |
tree | d123c24a4e0b4a2b83bd44a2ada04d73b07ebdd9 /hosts/codethink-sled16-arm64/etc/pbuilder/rebuild-hooks/B01_cleanup | |
parent | 67699e0c7e3923bf05c5823fa33bc6088f59938c (diff) | |
download | jenkins.debian.net-683f48302fa6188dcb49bbbcdfeac83ecef9a43c.tar.xz |
reproducible Debian: add arm64 to tested architectures, thanks to codethink.co.uk providing us with 8 moonshot arm64 sleds
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts/codethink-sled16-arm64/etc/pbuilder/rebuild-hooks/B01_cleanup')
-rwxr-xr-x | hosts/codethink-sled16-arm64/etc/pbuilder/rebuild-hooks/B01_cleanup | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/hosts/codethink-sled16-arm64/etc/pbuilder/rebuild-hooks/B01_cleanup b/hosts/codethink-sled16-arm64/etc/pbuilder/rebuild-hooks/B01_cleanup new file mode 100755 index 00000000..334e03a2 --- /dev/null +++ b/hosts/codethink-sled16-arm64/etc/pbuilder/rebuild-hooks/B01_cleanup @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +BUILDDIR="${BUILDDIR:-/tmp/buildd}" + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +# cease using disorderfs +if [ -d /tmp/disorderfs ] ; then + echo -n "Unmounting /tmp/disorderfs…" + fusermount -z -u "$BUILDDIR" + rmdir "$BUILDDIR" + mv /tmp/disorderfs "$BUILDDIR" + echo " done." +fi |