diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-27 16:01:16 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-27 16:02:18 +0100 |
commit | 5fadff3352cfeb82844b6d475056bb18f2eba0dc (patch) | |
tree | 3f29e380bc4641c7fb686fc634c3b696dc1e80bf /man/machinectl.xml | |
parent | 6706384a89ae0c462e7172588c80667190c4d9e2 (diff) | |
download | systemd-5fadff3352cfeb82844b6d475056bb18f2eba0dc.tar.gz |
man/machinectl: fix pull-raw example
We do not allow machine names with "_", so the command would fail as written.
Share the example with the systemd-nspawn page instead.
Diffstat (limited to 'man/machinectl.xml')
-rw-r--r-- | man/machinectl.xml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/man/machinectl.xml b/man/machinectl.xml index 5f94045984..8ea836ade6 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -1,6 +1,9 @@ <?xml version='1.0'?> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ +<!ENTITY % entities SYSTEM "custom-entities.ent" > +%entities; +]> <!-- SPDX-License-Identifier: LGPL-2.1+ --> <refentry id="machinectl" conditional='ENABLE_MACHINED' @@ -939,14 +942,16 @@ <example> <title>Download a Fedora image, set a root password in it, start - it as service</title> + it as a service</title> - <programlisting># machinectl pull-raw --verify=no https://dl.fedoraproject.org/pub/fedora/linux/releases/27/CloudImages/x86_64/images/Fedora-Cloud-Base-27-1.6.x86_64.raw.xz -# systemd-nspawn -M Fedora-Cloud-Base-27-1.6.x86_64 + <programlisting># machinectl pull-raw --verify=no \ + https://download.fedoraproject.org/pub/fedora/linux/releases/&fedora_latest_version;/Cloud/x86_64/images/Fedora-Cloud-Base-&fedora_latest_version;-&fedora_cloud_release;.x86_64.raw.xz \ + Fedora-Cloud-Base-&fedora_latest_version;-&fedora_cloud_release;.x86-64 +# systemd-nspawn -M Fedora-Cloud-Base-&fedora_latest_version;-&fedora_cloud_release;.x86-64 # passwd # exit -# machinectl start Fedora-Cloud-Base-27-1.6.x86_64 -# machinectl login Fedora-Cloud-Base-27-1.6.x86_64</programlisting> +# machinectl start Fedora-Cloud-Base-&fedora_latest_version;-&fedora_cloud_release;.x86-64 +# machinectl login Fedora-Cloud-Base-&fedora_latest_version;-&fedora_cloud_release;.x86-64</programlisting> <para>This downloads the specified <filename>.raw</filename> image with verification disabled. Then, a shell is opened in it |