]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: do not kill rescue shell when machines.target is started
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Mon, 25 Sep 2017 10:38:08 +0000 (11:38 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Fri, 29 Sep 2017 16:32:14 +0000 (17:32 +0100)
The original aim of this commit is that starting machines.target from the
rescue shell would not kill the rescue shell and lock you out of the
system.

This is similar to commit 6579a622, for the conflict between
sysinit.target and the _emergency_ shell.  That particular commit
introduced an ordering cycle and will need to be reverted and/or
fixed.  This one does not, because it does not need to introduce any new
dependencies.

The reason why this commit is allowable also has it's own merit:

machines.target was not marked as AllowIsolate.  Also, the point of
containers is to not escape them...  I don't think we want to promote
machines.target as a default target or similar; you would generally want
some system service to allow you to shut down the machine, for example.  I
don't see this approach used in CoreOS, nor in Fedora Atomic Host; we are
missing any positive examples of its utility.

Requires=basic.target / After=basic.target can be removed for the same
reason.

units/machines.target

index 99618a19f7e59b2eb62fcdd847380962bd39491d..e07b0bb6ae734a1ba71fda2b62aba67fa5ae78cb 100644 (file)
@@ -8,9 +8,6 @@
 [Unit]
 Description=Containers
 Documentation=man:systemd.special(7)
-Requires=basic.target
-Conflicts=rescue.service rescue.target
-After=basic.target rescue.service rescue.target
 Before=multi-user.target
 
 [Install]