Skip to content

Commit 30c3e93

Browse files
authored
Update example to F42 and fix invocation with dnf5 (systemd#37250)
2 parents cf0f741 + f6d524a commit 30c3e93

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

man/custom-entities.ent.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
<!ENTITY DEFAULT_TIMEOUT "{{DEFAULT_TIMEOUT_SEC}} s">
1919
<!ENTITY DEFAULT_USER_TIMEOUT "{{DEFAULT_USER_TIMEOUT_SEC}} s">
2020
<!ENTITY DEFAULT_KEYMAP "{{SYSTEMD_DEFAULT_KEYMAP}}">
21-
<!ENTITY fedora_latest_version "41">
22-
<!ENTITY fedora_cloud_release "1.4">
21+
<!ENTITY fedora_latest_version "42">
22+
<!ENTITY fedora_cloud_release "1.1">

man/systemd-nspawn.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,12 +1901,14 @@ After=sys-subsystem-net-devices-ens1.device</programlisting>
19011901
<title>Build and boot a minimal Fedora distribution in a container</title>
19021902

19031903
<programlisting># dnf -y --releasever=&fedora_latest_version; --installroot=/var/lib/machines/f&fedora_latest_version; \
1904-
--repo=fedora --repo=updates --setopt=install_weak_deps=False install \
1905-
passwd dnf fedora-release vim-minimal util-linux systemd systemd-networkd
1904+
--use-host-config --setopt=install_weak_deps=0 \
1905+
--repo=fedora --repo=updates install \
1906+
passwd dnf fedora-release nano util-linux systemd systemd-networkd
19061907
# systemd-nspawn -bD /var/lib/machines/f&fedora_latest_version;</programlisting>
19071908

1908-
<para>This installs a minimal Fedora distribution into the
1909-
directory <filename index="false">/var/lib/machines/f&fedora_latest_version;</filename>
1909+
<para>(Omit <parameter>--use-host-config</parameter> when using <command>dnf</command> &lt;= 4.)
1910+
This installs a minimal Fedora distribution into the directory
1911+
<filename index="false">/var/lib/machines/f&fedora_latest_version;</filename>
19101912
and then boots that OS in a namespace container. Because the installation
19111913
is located underneath the standard <filename>/var/lib/machines/</filename>
19121914
directory, it is also possible to start the machine using

0 commit comments

Comments
 (0)