From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0612D138247 for ; Wed, 1 Jan 2014 18:53:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC494E0969; Wed, 1 Jan 2014 18:53:38 +0000 (UTC) Received: from qmta05.westchester.pa.mail.comcast.net (qmta05.westchester.pa.mail.comcast.net [76.96.62.48]) by pigeon.gentoo.org (Postfix) with ESMTP id 27B45E0969 for ; Wed, 1 Jan 2014 18:53:37 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta05.westchester.pa.mail.comcast.net with comcast id 8ie11n00327AodY55itd7x; Wed, 01 Jan 2014 18:53:37 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta19.westchester.pa.mail.comcast.net with comcast id 8itc1n00F152l3L3fitc0B; Wed, 01 Jan 2014 18:53:37 +0000 Received: by odin.tremily.us (Postfix, from userid 1000) id CA935E4BE6C; Wed, 1 Jan 2014 10:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1388602415; bh=N3WDUV7kcbLxclv8Jl5B0Q6+mwk2nbxeBBrWXDT7d2M=; h=Date:From:To:Subject:References:In-Reply-To; b=Df0GW1MwBwQFxplCXVnKapw5NZmW5mC5T6wqH2Py1ECOTNBrKkKO/TuXqKPipNJpP chLxWqwq2dHN5/Sm8mEXquKBXXFsrsPF9Iqg+dewCYXm5QMBsph8jb//zk1Nvnttb3 tnwRH62kodeVY64GJR53SE3Pi4NnQnSuWge/E9yU= Date: Wed, 1 Jan 2014 10:53:35 -0800 From: "W. Trevor King" To: gentoo-catalyst@lists.gentoo.org Subject: Re: [gentoo-catalyst] mounts changes was: [PATCH 5/6] modules/generic_stage_target.py, modules/stage1_target.py: Add a target_mounts dictionary Message-ID: <20140101185335.GK29195@odin.tremily.us> References: <1388282230-3563-1-git-send-email-dolsen@gentoo.org> <1388282230-3563-6-git-send-email-dolsen@gentoo.org> <20131229024911.GH29195@odin.tremily.us> <20131229035239.GK29195@odin.tremily.us> <1388458480.24088.99.camel@big_daddy.dol-sen.ca> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aZaBog0ly0buBYah" Content-Disposition: inline In-Reply-To: OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.22 (2013-10-16) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1388602417; bh=1kN24bMSJl2vpU6TQfjke3OWTHRTlp/lJaDD9vku9As=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=ggkDSpLpWFeiDB4vUYUt9DIyJFw+qLZ3VkSOiCQZMeuSiaDKBqUuEfj3zyRmJ6riV mISLEUi/xB5aCbQ34CKLu5xNcDpte9kyxytq61/izKUTTGpcQvcdd2BiHw4hOWGMhC oixB9/a35BORAloc74txJTQ56+5gG48amNpqYCM65qieB7QovU14hyWBHDTVE+CX2P hLxZTm1Xmf5m8ObZ3pYvimyN8KDaPW00/wAxvYUA0BrzEC3HN6/SHZWKmH47Qx19j0 NOx02LWCSjkPMws2V0rkqEQTksTVuqHaq0BeN2agXivwcsr+wfKnG8u343IZ0C5Ws2 ekSWErOSxPlvA== X-Archives-Salt: 28c86b44-efc3-4971-a22a-4c344142a86a X-Archives-Hash: d27423f4f70a254e9e2e47a249a0d2f7 --aZaBog0ly0buBYah Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 01, 2014 at 06:05:35AM +0000, Jorge Manuel B. S. Vicetto wrote: > On Mon, 30 Dec 2013, Brian Dolbec wrote: > > On Sat, 2013-12-28 at 19:52 -0800, W. Trevor King wrote: > >> On Sat, Dec 28, 2013 at 06:49:11PM -0800, W. Trevor King wrote: > >>> Hmm. I'm not how this is handled at the moment, but don't we want: > >>> > >>> mount -t proc none /tmp/stage1root/proc > >>> > >>> instead of: > >>> > >>> mount --bind /proc /tmp/stage1root/proc > >>> > >>> The handbook is currently using --rbind as well [1]. > >>> > >>> Maybe food for a future series :p. > >> > >> After Douglas Freed talked me off the devtmpfs ledge on > >> #gentoo-releng, my current suggested mount changes are: > >> > >> -t: > >> proc > >> --rbind: > >> sys > >> dev > >> portdir > >> port_logdir > >> port_tmpdir > >> kerncache > >> ccache > >> icecream > >> drop: > >> devpts (now that we --rbind /dev) > >> distdir (now that we --rbind portdir) > >> packagedir (now that we --rbind portdir) > >> > >> For distdir/packagedir, I'd be find if the source defaulted to None > >> (meaning =E2=80=9Cdon't mount anything=E2=80=9D) but could be configur= ed to a path > >> (meaning =E2=80=9C--rbind this after you've --rbind-mounted portdir=E2= =80=9D). > > > > No, we can't drop distdir and packagedir. The default locations for > > those are waiting for the catalyst changes to be completed. That is the > > reason I got started rewriting catalyst a year ago. Those 2 directories > > are being relocated OUT of the tree. Like they should have been all > > along. >=20 > As I've already mentioned on #gentoo-releng, there are also 2 reasons thi= s=20 > is a no-go for me: >=20 > 1. it's unlikely we want to share pkgdir between the host and the targets= =20 > we build >=20 > 2. sharing pkgdir between incompatible targets would fail miserably. For= =20 > example, skimmer does amd64 builds for hardened and non-hardened, multili= b=20 > and no-multilib. It also does x86 builds. Sharing a package between any o= r=20 > at least most of those targets would fail and cause broken stages. So packagedir should just come from the pkgcache. That makes sense. I still think /dev should be mounted via --rbind, and likely other user-configurable sources as well. If we remove a user-configurable packagedir source and keep the rest of this --rbind proposal, does that address all of your concerns? Cheers, Trevor --=20 This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy --aZaBog0ly0buBYah Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJSxGQtAAoJEKKfehoaNkbt9UMP/jiwHSimJ5wWeTWSH1HUzETh kyyy4QndLRosPg3bcRqLnh6lQEKOmM9JYEkZ9IKk1nuN6vo+CcGLME3yS/kd+3Zx KED0hSJLJtSu6IGJjqdh0e7lMRsDyNlcq06lxV+H6s9hgY1Vtxm4Pckmv/Pg7R2L ihKaiVd8CVYEv4KFsXH7vx6wWkipdx+CduPkrYZs7hMO0EEmwGXEwMbH+LQEDtDn SicDNGyPYtdDI1nPheqGBU4vSK3Hg+sOzSp5Tsfyay1xjAMzZ4462fyawlxCh0vn 0attZla+NgR01fkt4Do4eJUCnRf93UtZ0nppalRrVRxCN93kdbrqubxWA/cPw34v sZzJsch0cJPnPeqbx6ia+Rt2WFrat+K0JX6OW+RX87YWh2UW06tCeW79g6ZLP3E4 7+8IECteWLQJTmmjE0+CrfAkCRfRSqIBuT1x8ONXceOfk4iMG3G3pi3Ae8KZjxPH 53GHi58DlhE5+XtO3gx+AxIlinjQpGpOmEu9uSL5AgRFIcl5TJ+bWdTMfkgJCANE VEkpUfksqGwXsnunhyj4WD2Za81YOc/RM4c4tZGca62UG7L1S6PQ/tGt5DX6kVzv NlyFbp6zLpQV0LX7EEg3Mvs0K4EI5QijV2mUi5a9SjIQNoPqyoUThZZrm6pj1GHS Sn+RoeyAgjpikiSFK8dE =3j+2 -----END PGP SIGNATURE----- --aZaBog0ly0buBYah--