summaryrefslogtreecommitdiff
path: root/man/machinectl.xml
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-03-12 00:56:13 +0800
committerMike Yuan <me@yhndnzj.com>2023-03-15 19:56:19 +0800
commit1ed35a0d936fede155eb0c060ddfe4375885077f (patch)
tree4585f1b65a4077e2ca84528be694ef7d287a7902 /man/machinectl.xml
parentd6c623e88446e819b999c12b53be5e8c977f9f08 (diff)
downloadsystemd-1ed35a0d936fede155eb0c060ddfe4375885077f.tar.gz
machinectl: add verb edit and cat to operate on .nspawn files
This allows operating on .nspawn files using machinectl. Closes #26246
Diffstat (limited to 'man/machinectl.xml')
-rw-r--r--man/machinectl.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/man/machinectl.xml b/man/machinectl.xml
index 2ecbe0f0ab..1585a0896d 100644
--- a/man/machinectl.xml
+++ b/man/machinectl.xml
@@ -377,6 +377,21 @@
</varlistentry>
<varlistentry>
+ <term><command>edit</command> <replaceable>NAME|FILE</replaceable></term>
+
+ <listitem><para>Edit the settings file of the specified machines. For the format of the settings file, refer to <citerefentry
+ project='man-pages'><refentrytitle>systemd.nspawn</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
+ If an existing settings file of the given machine can't be found, <command>edit</command> automatically
+ create a new settings file from scratch under <filename>/etc/</filename></para></listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><command>cat</command> <replaceable>NAME|FILE</replaceable></term>
+
+ <listitem><para>Show the settings file of the specified machines.</para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><command>clone</command> <replaceable>NAME</replaceable> <replaceable>NAME</replaceable></term>
<listitem><para>Clones a container or VM image. The arguments specify the name of the image to clone and the