From 18cb1810b5b526daf5b2440a5a966fcecec9575b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 22 Sep 2015 23:22:48 +0200 Subject: fixup 32a4d96: reproducible: enable disorderfs on hb0 --- hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/B01_cleanup | 13 +++++++++++++ hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/C01_cleanup | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/B01_cleanup create mode 100755 hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/C01_cleanup (limited to 'hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks') diff --git a/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/B01_cleanup b/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/B01_cleanup new file mode 100755 index 00000000..36a19bc9 --- /dev/null +++ b/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/B01_cleanup @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +# 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 + fusermount -u /tmp/buildd + rmdir /tmp/buildd + mv /tmp/disorderfs /tmp/buildd +fi diff --git a/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/C01_cleanup b/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/C01_cleanup new file mode 100755 index 00000000..36a19bc9 --- /dev/null +++ b/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/C01_cleanup @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +# 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 + fusermount -u /tmp/buildd + rmdir /tmp/buildd + mv /tmp/disorderfs /tmp/buildd +fi -- cgit v1.2.3-70-g09d2