From 36d57a7deefc9e825e766a2a01ebe59ea095b2cd Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 18 Oct 2015 19:42:01 +0200 Subject: remove unneeded rebuild hooks --- .../etc/pbuilder/rebuild-hooks/B01_cleanup | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 hosts/profitbricks-build4-amd64/etc/pbuilder/rebuild-hooks/B01_cleanup (limited to 'hosts/profitbricks-build4-amd64/etc/pbuilder/rebuild-hooks/B01_cleanup') diff --git a/hosts/profitbricks-build4-amd64/etc/pbuilder/rebuild-hooks/B01_cleanup b/hosts/profitbricks-build4-amd64/etc/pbuilder/rebuild-hooks/B01_cleanup deleted file mode 100755 index bbea69fa..00000000 --- a/hosts/profitbricks-build4-amd64/etc/pbuilder/rebuild-hooks/B01_cleanup +++ /dev/null @@ -1,17 +0,0 @@ -#!/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 -u "$BUILDDIR" - rmdir "$BUILDDIR" - mv /tmp/disorderfs "$BUILDDIR" - echo " done." -fi -- cgit v1.2.3-54-g00ecf