diff options
Diffstat (limited to 'hosts/jenkins')
3 files changed, 24 insertions, 0 deletions
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 |