[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: use disorderfs in the 2nd build

Holger Levsen holger at moszumanska.debian.org
Fri Aug 28 20:49:28 UTC 2015


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

holger pushed a commit to branch h01ger/use-disorderfs
in repository jenkins.debian.net.

commit 7348ec9275d83637a0868054ab51bd1ed2a0126c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Aug 28 22:48:42 2015 +0200

    reproducible: use disorderfs in the 2nd build
---
 hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup           | 10 ++++++++++
 hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup           | 10 ++++++++++
 .../jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment  |  4 ++++
 3 files changed, 24 insertions(+)

diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup b/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup
new file mode 100755
index 0000000..111aca0
--- /dev/null
+++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup
@@ -0,0 +1,10 @@
+#!/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
+umount /tmp/buildd
+mv /tmp/disorderfs /tmp/buildd
diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup b/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup
new file mode 100755
index 0000000..111aca0
--- /dev/null
+++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup
@@ -0,0 +1,10 @@
+#!/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
+umount /tmp/buildd
+mv /tmp/disorderfs /tmp/buildd
diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment b/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment
index 5fa48a2..9046fdc 100755
--- a/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment
+++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment
@@ -11,3 +11,7 @@ hostname i-capture-the-hostname
 domainname i-capture-the-domain
 echo "I: Adding a custom variable just for the fun of it..." >&2
 export CAPTURE_ENVIRONMENT="I capture the environment"
+
+# use disorderfs
+mv /tmp/buildd /tmp/disorderfs
+disorderfs /tmp/disorderfs /tmp/buildd

-- 
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