[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: setup_schroot: mount /proc before trying to install packages
Holger Levsen
holger at moszumanska.debian.org
Fri May 1 09:06:33 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 1efc2a1bbe1eb99de3c4fc6ef4bec2770c5934b1
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Fri May 1 11:03:39 2015 +0200
reproducible: setup_schroot: mount /proc before trying to install packages
---
bin/reproducible_setup_schroot.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bin/reproducible_setup_schroot.sh b/bin/reproducible_setup_schroot.sh
index 1b45fc7..a0d3a8b 100755
--- a/bin/reproducible_setup_schroot.sh
+++ b/bin/reproducible_setup_schroot.sh
@@ -52,6 +52,9 @@ bootstrap() {
fi
echo "deb-src $MIRROR $SUITE main" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list > /dev/null
+ # things break without /proc
+ sudo mount --bind /proc $CHROOT_TARGET/proc
+
sudo chroot $CHROOT_TARGET apt-get update
if [ -n "$1" ] ; then
set -x
@@ -99,6 +102,8 @@ EOF
rm $TMPFILE
sudo chroot $CHROOT_TARGET apt-get update
fi
+
+ sudo umount -l $CHROOT_TARGET/proc
}
cleanup() {
--
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