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 |