Gentoo Archives: gentoo-catalyst

From: "W. Trevor King" <wking@×××××××.us>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] [PATCH 1/2] modules/generic_stage_target.py: USE portdir, distdir,... instead of paths for keys
Date: Wed, 18 Dec 2013 03:30:52
Message-Id: 20131218033048.GE25409@odin.tremily.us
In Reply to: Re: [gentoo-catalyst] [PATCH 1/2] modules/generic_stage_target.py: USE portdir, distdir,... instead of paths for keys by Brian Dolbec
1 On Tue, Dec 17, 2013 at 07:15:07PM -0800, Brian Dolbec wrote:
2 > On Tue, 2013-12-17 at 19:10 -0800, W. Trevor King wrote:
3 > > On Tue, Dec 17, 2013 at 05:07:26PM -0800, Brian Dolbec wrote:
4 > > > if "SNAPCACHE" in self.settings:
5 > > > - self.mounts=["/proc","/dev","/usr/portage","/usr/portage/distfiles","/var/tmp/portage"]
6 > > > - self.mountmap={"/proc":"/proc","/dev":"/dev","devpts":"/dev/pts",
7 > > > - "/usr/portage":self.settings["snapshot_cache_path"]+"/portage",\
8 > > > - "/usr/portage/distfiles":self.settings["distdir"],"/var/tmp/portage":"tmpfs"}
9 > > > + self.mounts=["proc", "dev", "portdir", "distdir", "port_tmpdir"]
10 > > > + self.mountmap={"proc":"/proc", "dev":"/dev", "devpts":"/dev/pts",
11 > > > + "portdir":self.settings["snapshot_cache_path"]+"/portage",\
12 > > > + "distdir":self.settings["distdir"],"port_tmpdir":"tmpfs"}
13 > > > else:
14 > > > self.mounts = ["proc", "dev", "distdir", "port_tmpdir"]
15 > > > self.mountmap = {"proc":"/proc", "dev":"/dev", "devpts":"/dev/pts",
16 > >
17 > > Where does /usr/portage come from if SNAPCACHE is not enabled? Is it
18 > > just bind-mounted from the host's /usr/portage?
19 >
20 > It comes from the snapshot tarball created during a snapshot run.
21 > SnapCache just keeps an unpacked copy ready to reuse. That way it can
22 > skip the unpack stage.
23
24 In that case, this patch is acked-by me.
25
26 Cheers,
27 Trevor
28
29 --
30 This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
31 For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

Attachments

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