From 5a94246584d559bb0731974471d82598d6246754 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 29 Aug 2015 10:06:05 +0200 Subject: reproducible: use disorderfs as user --- hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup | 2 +- hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup | 2 +- hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (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 index b35b5c56..df37129c 100755 --- a/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup +++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup @@ -6,5 +6,5 @@ set -e [ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 # cease using disorderfs -fusermount -u /tmp/buildd +sudo -u pbuilder2 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 index b35b5c56..df37129c 100755 --- a/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup +++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup @@ -6,5 +6,5 @@ set -e [ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 # cease using disorderfs -fusermount -u /tmp/buildd +sudo -u pbuilder2 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 9046fdc1..da5f86c6 100755 --- a/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment +++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment @@ -12,6 +12,6 @@ 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 +# use disorderfs, mount it as user mv /tmp/buildd /tmp/disorderfs -disorderfs /tmp/disorderfs /tmp/buildd +sudo -u pbuilder2 disorderfs /tmp/disorderfs /tmp/buildd -- cgit v1.2.3-70-g09d2