summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2011-04-16 09:58:05 +0200
committerChristoph Mende <angelos@gentoo.org>2011-04-16 09:58:05 +0200
commit3f5a6ab4990665b12fb8ab7be7ff6a22ae322326 (patch)
treead9a17159cbddc5eb3d2eaa36d1e6f08ed70e3c9 /scripts
parentAdded my personal scripts (diff)
downloadangelos-3f5a6ab4990665b12fb8ab7be7ff6a22ae322326.tar.gz
angelos-3f5a6ab4990665b12fb8ab7be7ff6a22ae322326.tar.bz2
angelos-3f5a6ab4990665b12fb8ab7be7ff6a22ae322326.zip
mount-chroot: Don't bind distfiles/packages under PORTDIR
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mount-chroot.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/mount-chroot.sh b/scripts/mount-chroot.sh
index b96dc44..3286359 100755
--- a/scripts/mount-chroot.sh
+++ b/scripts/mount-chroot.sh
@@ -19,7 +19,9 @@ mount --bind /dev/pts "$@"/dev/pts
mount --bind /sys "$@"/sys
mkdir -p "$@"/usr/portage
mount --bind /home/angelos/gentoo-x86 "$@"/usr/portage
-mount --bind /home/angelos/distfiles "$@"/usr/portage/distfiles
+mkdir -p "$@"/root/{packages,distfiles}
+mount --bind /home/angelos/distfiles "$@"/root/distfiles
+mount --bind /home/angelos/packages "$@"/root/packages
mount -t proc none "$@"/proc
cp /etc/resolv.conf "$@"/etc