summaryrefslogtreecommitdiffstats
path: root/hosts/codethink-sled11-arm64/etc/pbuilder/rebuild-hooks/C01_cleanup
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-12-22 20:25:34 +0100
committerHolger Levsen <holger@layer-acht.org>2016-12-22 20:25:34 +0100
commit683f48302fa6188dcb49bbbcdfeac83ecef9a43c (patch)
treed123c24a4e0b4a2b83bd44a2ada04d73b07ebdd9 /hosts/codethink-sled11-arm64/etc/pbuilder/rebuild-hooks/C01_cleanup
parent67699e0c7e3923bf05c5823fa33bc6088f59938c (diff)
downloadjenkins.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-sled11-arm64/etc/pbuilder/rebuild-hooks/C01_cleanup')
-rwxr-xr-xhosts/codethink-sled11-arm64/etc/pbuilder/rebuild-hooks/C01_cleanup21
1 files changed, 21 insertions, 0 deletions
diff --git a/hosts/codethink-sled11-arm64/etc/pbuilder/rebuild-hooks/C01_cleanup b/hosts/codethink-sled11-arm64/etc/pbuilder/rebuild-hooks/C01_cleanup
new file mode 100755
index 00000000..47719ae7
--- /dev/null
+++ b/hosts/codethink-sled11-arm64/etc/pbuilder/rebuild-hooks/C01_cleanup
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+BUILDDIR="${BUILDDIR:-/tmp/buildd}"
+
+echo "debug output: disk usage on $(hostname) at $(date -u)"
+df -h
+echo
+
+# 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