diff options
author | Christoph Mende <angelos@gentoo.org> | 2012-07-01 22:46:32 +0200 |
---|---|---|
committer | Christoph Mende <angelos@gentoo.org> | 2012-07-01 22:46:32 +0200 |
commit | 3c25a23c6cbfb9aa22e2042cc705e28533407e00 (patch) | |
tree | 3ed4d7012bd697696afa4411d8d6b140b5b1426d | |
parent | Remove sync.sh, replaced by wired's update (diff) | |
download | angelos-3c25a23c6cbfb9aa22e2042cc705e28533407e00.tar.gz angelos-3c25a23c6cbfb9aa22e2042cc705e28533407e00.tar.bz2 angelos-3c25a23c6cbfb9aa22e2042cc705e28533407e00.zip |
Use --rbind for /dev in mount-chroot.sh
-rwxr-xr-x | scripts/mount-chroot.sh | 3 |
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 |