mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
Update example to F42 and fix invocation with dnf5 (#37250)
This commit is contained in:
@@ -18,5 +18,5 @@
|
||||
<!ENTITY DEFAULT_TIMEOUT "{{DEFAULT_TIMEOUT_SEC}} s">
|
||||
<!ENTITY DEFAULT_USER_TIMEOUT "{{DEFAULT_USER_TIMEOUT_SEC}} s">
|
||||
<!ENTITY DEFAULT_KEYMAP "{{SYSTEMD_DEFAULT_KEYMAP}}">
|
||||
<!ENTITY fedora_latest_version "41">
|
||||
<!ENTITY fedora_cloud_release "1.4">
|
||||
<!ENTITY fedora_latest_version "42">
|
||||
<!ENTITY fedora_cloud_release "1.1">
|
||||
|
||||
@@ -1901,12 +1901,14 @@ After=sys-subsystem-net-devices-ens1.device</programlisting>
|
||||
<title>Build and boot a minimal Fedora distribution in a container</title>
|
||||
|
||||
<programlisting># dnf -y --releasever=&fedora_latest_version; --installroot=/var/lib/machines/f&fedora_latest_version; \
|
||||
--repo=fedora --repo=updates --setopt=install_weak_deps=False install \
|
||||
passwd dnf fedora-release vim-minimal util-linux systemd systemd-networkd
|
||||
--use-host-config --setopt=install_weak_deps=0 \
|
||||
--repo=fedora --repo=updates install \
|
||||
passwd dnf fedora-release nano util-linux systemd systemd-networkd
|
||||
# systemd-nspawn -bD /var/lib/machines/f&fedora_latest_version;</programlisting>
|
||||
|
||||
<para>This installs a minimal Fedora distribution into the
|
||||
directory <filename index="false">/var/lib/machines/f&fedora_latest_version;</filename>
|
||||
<para>(Omit <parameter>--use-host-config</parameter> when using <command>dnf</command> <= 4.)
|
||||
This installs a minimal Fedora distribution into the directory
|
||||
<filename index="false">/var/lib/machines/f&fedora_latest_version;</filename>
|
||||
and then boots that OS in a namespace container. Because the installation
|
||||
is located underneath the standard <filename>/var/lib/machines/</filename>
|
||||
directory, it is also possible to start the machine using
|
||||
|
||||
Reference in New Issue
Block a user