From 3846c7b47599dbee5ab00f5e63610515a516a443 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 15 Feb 2014 21:32:09 +0100 Subject: [PATCH] do_chroot: mount /proc too, oops Signed-off-by: Alejandro Mery --- files/bin/do_chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/bin/do_chroot b/files/bin/do_chroot index 217267d..a7f87c7 100755 --- a/files/bin/do_chroot +++ b/files/bin/do_chroot @@ -19,7 +19,7 @@ cd "$DIR" || fatal "$DIR: invalid chroot dir" DIR=$(pwd -P) error=false -for x in dev dev/pts sys tmp; do +for x in dev dev/pts proc sys tmp; do if ! grep -q " $DIR/$x " /proc/mounts; then mount --bind /$x $DIR/$x || error=true