systemctl: add support for --root for systemctl enable/disable/is-enabled

Add --root=<root> for enable/disable/is-enabled systemctl commands. To
be used for easily enable / disable systemd services for a chroot,
without running systemctl inside chroot.
This commit is contained in:
Frederic Crozat
2011-06-27 14:08:16 +02:00
committed by Lennart Poettering
parent 18fa6b2705
commit be394c48a7
2 changed files with 62 additions and 12 deletions
+11
View File
@@ -381,6 +381,17 @@
disabled.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--root=</option></term>
<listitem><para>When used with
<command>enable</command>/
<command>disable</command>/
<command>is-enabled</command>,
use alternative root path for systemd
install.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-H</option></term>
<term><option>--host</option></term>