From 1efc2a1bbe1eb99de3c4fc6ef4bec2770c5934b1 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 1 May 2015 11:03:39 +0200 Subject: reproducible: setup_schroot: mount /proc before trying to install packages --- bin/reproducible_setup_schroot.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/reproducible_setup_schroot.sh') diff --git a/bin/reproducible_setup_schroot.sh b/bin/reproducible_setup_schroot.sh index 1b45fc78..a0d3a8b6 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() { -- cgit v1.2.3-54-g00ecf