Browse Source

do_chroot: mount /proc too, oops

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 11 years ago
parent
commit
3846c7b475
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      files/bin/do_chroot

+ 1
- 1
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

Loading…
Cancel
Save