Gentoo Archives: gentoo-dev

From: Tim Harder <radhermit@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] An example overlayfs sandbox test
Date: Sun, 24 Sep 2017 04:36:44
Message-Id: 20170924043630.GA26673@thyme.lan
In Reply to: Re: [gentoo-dev] An example overlayfs sandbox test by Rich Freeman
1 On 2017-09-22 22:26, Rich Freeman wrote:
2 > So, we're drifting in topic, but as long as we're coming up with
3 > nice-to-have utilities it would be lovely if our install CDs had
4 > something similar to systemd-nspawn to set up a container instead of a
5 > chroot for performing the install. If nothing else it would make
6 > mount cleanup easier when you're done. I imagine it would just be a
7 > bit of shell scripting with util-linux on the CD - while nspawn is
8 > bundled with systemd you don't need any of its fancier features for
9 > doing an install.
10
11 If you're fine with python, you could try pychroot [1]. I wrote it with
12 this kind of thing in mind and for doing easy namespaced chroots in
13 python using a context manager.
14
15 It's even in the tree already. ;)
16
17 Tim
18
19 [1]: https://github.com/pkgcore/pychroot