From e5ddf396a38e4e76b742272991560761cc807814 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 28 Aug 2015 22:48:42 +0200 Subject: 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(+) create mode 100755 hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup create mode 100755 hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup (limited to 'hosts/jenkins/etc/pbuilder') 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 00000000..b35b5c56 --- /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 +fusermount -u /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 00000000..b35b5c56 --- /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 +fusermount -u /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 5fa48a20..9046fdc1 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 -- cgit v1.2.3-70-g09d2