From 5b07669f5dfc1599c13c0272cd46b176534aa01b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 8 Oct 2015 10:14:28 +0200 Subject: reproducible: add profitbricks-build5-amd64 and profitbricks-build6-amd64 --- .../etc/pbuilder/rebuild-hooks/C01_cleanup | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 hosts/profitbricks-build6-amd64/etc/pbuilder/rebuild-hooks/C01_cleanup (limited to 'hosts/profitbricks-build6-amd64/etc/pbuilder/rebuild-hooks/C01_cleanup') diff --git a/hosts/profitbricks-build6-amd64/etc/pbuilder/rebuild-hooks/C01_cleanup b/hosts/profitbricks-build6-amd64/etc/pbuilder/rebuild-hooks/C01_cleanup new file mode 100755 index 00000000..6ec09822 --- /dev/null +++ b/hosts/profitbricks-build6-amd64/etc/pbuilder/rebuild-hooks/C01_cleanup @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +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 -u /tmp/buildd + rmdir /tmp/buildd + mv /tmp/disorderfs /tmp/buildd + echo " done." +fi -- cgit v1.2.3-70-g09d2