summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2012-07-01 22:46:32 +0200
committerChristoph Mende <angelos@gentoo.org>2012-07-01 22:46:32 +0200
commit3c25a23c6cbfb9aa22e2042cc705e28533407e00 (patch)
tree3ed4d7012bd697696afa4411d8d6b140b5b1426d
parentRemove sync.sh, replaced by wired's update (diff)
downloadangelos-3c25a23c6cbfb9aa22e2042cc705e28533407e00.tar.gz
angelos-3c25a23c6cbfb9aa22e2042cc705e28533407e00.tar.bz2
angelos-3c25a23c6cbfb9aa22e2042cc705e28533407e00.zip
Use --rbind for /dev in mount-chroot.sh
-rwxr-xr-xscripts/mount-chroot.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/mount-chroot.sh b/scripts/mount-chroot.sh
index ad419c7..8994aa8 100755
--- a/scripts/mount-chroot.sh
+++ b/scripts/mount-chroot.sh
@@ -18,8 +18,7 @@ fi
: ${DISTDIR="$(portageq envvar DISTDIR)"}
: ${PKGDIR="$(portageq envvar PKGDIR)"}
-mount --bind /dev "$@"/dev
-mount --bind /dev/pts "$@"/dev/pts
+mount --rbind /dev "$@"/dev
mount --bind /sys "$@"/sys
mkdir -p "$@"/usr/portage
mount --bind "${PORTDIR}" "$@"/usr/portage