summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-27 00:07:54 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:57 +0100
commitd21be5ff9177b25064f6e933e91f2c19a7190c19 (patch)
tree58d557211e25d7a5f58f3f62091a5748e898c690 /man
parent7f4b3c5ea39957231839421f2d3a65f5a18e4083 (diff)
detect-virt: add new --chroot switch to detect chroot() environments
Diffstat (limited to 'man')
-rw-r--r--man/systemd-detect-virt.xml17
1 files changed, 15 insertions, 2 deletions
diff --git a/man/systemd-detect-virt.xml b/man/systemd-detect-virt.xml
index 9ea9141d4d..190ab19152 100644
--- a/man/systemd-detect-virt.xml
+++ b/man/systemd-detect-virt.xml
@@ -139,7 +139,7 @@
</row>
<row>
- <entry morerows="5">container</entry>
+ <entry morerows="5">Container</entry>
<entry><varname>openvz</varname></entry>
<entry>OpenVZ/Virtuozzo</entry>
</row>
@@ -197,6 +197,18 @@
</varlistentry>
<varlistentry>
+ <term><option>-r</option></term>
+ <term><option>--chroot</option></term>
+
+ <listitem><para>Detect whether invoked in a
+ <citerefentry><refentrytitle>chroot</refentrytitle><manvolnum>2</manvolnum></citerefentry>
+ environment. In this mode no output is written, but the return
+ value indicates whether the process was invoked in a
+ <function>chroot()</function>
+ environment or not.</para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>-q</option></term>
<term><option>--quiet</option></term>
@@ -221,7 +233,8 @@
<title>See Also</title>
<para>
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
- <citerefentry><refentrytitle>systemd-nspawn</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ <citerefentry><refentrytitle>systemd-nspawn</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
+ <citerefentry><refentrytitle>chroot</refentrytitle><manvolnum>2</manvolnum></citerefentry>
</para>
</refsect1>