From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QF0GI-0004Wz-8T for garchives@archives.gentoo.org; Wed, 27 Apr 2011 08:38:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3892AE011A; Wed, 27 Apr 2011 08:38:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0B369E011A for ; Wed, 27 Apr 2011 08:38:10 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 67E901B4022 for ; Wed, 27 Apr 2011 08:38:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C29FB80505 for ; Wed, 27 Apr 2011 08:38:09 +0000 (UTC) From: "Christoph Mende" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christoph Mende" Message-ID: <2e2ec27b96c6b70e3e811222dc317283752884ea.angelos@gentoo> Subject: [gentoo-commits] dev/angelos:master commit in: scripts/ X-VCS-Repository: dev/angelos X-VCS-Files: scripts/mount-chroot.sh X-VCS-Directories: scripts/ X-VCS-Committer: angelos X-VCS-Committer-Name: Christoph Mende X-VCS-Revision: 2e2ec27b96c6b70e3e811222dc317283752884ea Date: Wed, 27 Apr 2011 08:38:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: ddcc770323d468cce5e132b20c6721a2 commit: 2e2ec27b96c6b70e3e811222dc317283752884ea Author: Christoph Mende gentoo org> AuthorDate: Wed Apr 27 08:37:51 2011 +0000 Commit: Christoph Mende gentoo org> CommitDate: Wed Apr 27 08:37:51 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/angelos.git;a=3D= commit;h=3D2e2ec27b Get paths via portageq --- scripts/mount-chroot.sh | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/mount-chroot.sh b/scripts/mount-chroot.sh index 3286359..be97aaa 100755 --- a/scripts/mount-chroot.sh +++ b/scripts/mount-chroot.sh @@ -14,14 +14,18 @@ if [ ! -d "$@"/dev ]; then exit 1 fi =20 +PORTDIR=3D"$(portageq portdir)" +DISTDIR=3D"$(portageq envvar DISTDIR)" +PKGDIR=3D"$(portageq envvar PKGDIR)" + mount --bind /dev "$@"/dev mount --bind /dev/pts "$@"/dev/pts mount --bind /sys "$@"/sys mkdir -p "$@"/usr/portage -mount --bind /home/angelos/gentoo-x86 "$@"/usr/portage +mount --bind "${PORTDIR}" "$@"/usr/portage mkdir -p "$@"/root/{packages,distfiles} -mount --bind /home/angelos/distfiles "$@"/root/distfiles -mount --bind /home/angelos/packages "$@"/root/packages +mount --bind "${DISTDIR}" "$@"/root/distfiles +mount --bind "${PKGDIR}" "$@"/root/packages mount -t proc none "$@"/proc cp /etc/resolv.conf "$@"/etc =20