Skip to content

Commit 392a9bd

Browse files
committed
man/systemd-nspawn: call dnf with --use-host-config
This is needed for dnf5. But dnf-4 doesn't know about it. So also add a hint to skip the option with dnf-4. We can drop this later when dnf5 is the default everywhere. Also, s/vim-minimal/nano/. Nano is the default editor in Fedora since https://fedoraproject.org/wiki/Changes/UseNanoByDefault.
1 parent 6f9d8b6 commit 392a9bd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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)