Gentoo Archives: gentoo-catalyst

From: Brian Dolbec <dolsen@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] [PATCH 5/6] modules/generic_stage_target.py, modules/stage1_target.py: Add a target_mounts dictionary
Date: Sun, 29 Dec 2013 04:58:35
Message-Id: 1388293089.24088.25.camel@big_daddy.dol-sen.ca
In Reply to: Re: [gentoo-catalyst] [PATCH 5/6] modules/generic_stage_target.py, modules/stage1_target.py: Add a target_mounts dictionary by "W. Trevor King"
1 On Sat, 2013-12-28 at 19:52 -0800, W. Trevor King wrote:
2 > On Sat, Dec 28, 2013 at 06:49:11PM -0800, W. Trevor King wrote:
3 > > On Sat, Dec 28, 2013 at 05:57:09PM -0800, Brian Dolbec wrote:
4 > > > - self.mounts.append("/tmp/stage1root/proc")
5 > > > - self.mountmap["/tmp/stage1root/proc"]="/proc"
6 > > > + self.mounts.append("stage1root/proc")
7 > > > + self.target_mounts["stage1root/proc"] = "/tmp/stage1root/proc"
8 > > > + self.mountmap["stage1root/proc"]="/proc"
9 > >
10 > > Hmm. I'm not how this is handled at the moment, but don't we want:
11 > >
12 > > mount -t proc none /tmp/stage1root/proc
13 > >
14 > > instead of:
15 > >
16 > > mount --bind /proc /tmp/stage1root/proc
17 > >
18 > > The handbook is currently using --rbind as well [1].
19 > >
20 > > Maybe food for a future series :p.
21 >
22 > After Douglas Freed talked me off the devtmpfs ledge on
23 > #gentoo-releng, my current suggested mount changes are:
24 >
25 > -t:
26 > proc
27 > --rbind:
28 > sys
29 > dev
30 > portdir
31 > port_logdir
32 > port_tmpdir
33 > kerncache
34 > ccache
35 > icecream
36 > drop:
37 > devpts (now that we --rbind /dev)
38 > distdir (now that we --rbind portdir)
39 > packagedir (now that we --rbind portdir)
40 >
41 > For distdir/packagedir, I'd be find if the source defaulted to None
42 > (meaning “don't mount anything”) but could be configured to a path
43 > (meaning “--rbind this after you've --rbind-mounted portdir”).
44 >
45 > Cheers,
46 > Trevor
47 >
48
49 This series of patches was to just fix the migration from hard coded
50 paths to centrally configurable ones. These mount changes should be
51 commits unto themselves. Please don't confuse the issues... we have
52 lots more changes to get through. I'm not saying anything against your
53 proposed changes, just they're not for this commit.

Attachments

File name MIME type
signature.asc application/pgp-signature