Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] newsitem: openrc-0.28 mounts efivars read only
Date: Thu, 13 Jul 2017 15:40:37
Message-Id: CAGfcS_mPC+rmGq_36PLVMPHLDYOU=OUE4sWAQkERFqbiKOLqww@mail.gmail.com
In Reply to: Re: [gentoo-dev] newsitem: openrc-0.28 mounts efivars read only by Andrew Savchenko
1 On Thu, Jul 13, 2017 at 10:58 AM, Andrew Savchenko <bircoph@g.o> wrote:
2 >
3 > But in some scenarios this command is normal. E.g. user installs
4 > Gentoo from some live dvd/flash, makes some mistakes, understands
5 > that system is broken beyond repair and decides to start over again.
6 > If there is no need to recreate filesystem itself or partition
7 > layout, running rm -rf / as above is quite reasonable.
8 >
9
10 Honestly, this is one of those reasons that I think the handbook
11 should be tweaked to use a container instead of a chroot. That fixes
12 a lot of special filesystem issues and general makes things cleaner.
13 With systemd it is pretty trivial due to nspawn, but I'm not sure how
14 hard it would be to make this change on an openrc-based install CD
15 (presumably you'd need to include lxc tools on it, though a bit of
16 scripting with unshare is probably sufficient).
17
18 --
19 Rich