From 5fadff3352cfeb82844b6d475056bb18f2eba0dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 27 Oct 2020 16:01:16 +0100 Subject: [PATCH] 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. --- man/custom-entities.ent.in | 2 ++ man/machinectl.xml | 17 +++++++++++------ man/systemd-nspawn.xml | 4 ++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/man/custom-entities.ent.in b/man/custom-entities.ent.in index dc4b242fc37..1d1031b7626 100644 --- a/man/custom-entities.ent.in +++ b/man/custom-entities.ent.in @@ -11,3 +11,5 @@ + + diff --git a/man/machinectl.xml b/man/machinectl.xml index 5f940459840..8ea836ade69 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -1,6 +1,9 @@ + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> Download a Fedora image, set a root password in it, start - it as service + it as a service - # 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 + # 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 +# 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 This downloads the specified .raw image with verification disabled. Then, a shell is opened in it diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 8152cf0f135..848f1415d5e 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -1,8 +1,8 @@ - + +%entities; ]>