[Qa-jenkins-scm] [jenkins.debian.net] 01/01: fixup 32a4d96: reproducible: enable disorderfs on hb0

Holger Levsen holger at moszumanska.debian.org
Tue Sep 22 21:23:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 18cb1810b5b526daf5b2440a5a966fcecec9575b
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Sep 22 23:22:48 2015 +0200

    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(+)

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 0000000..36a19bc
--- /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 0000000..36a19bc
--- /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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list