From: Zbigniew Jędrzejewski-Szmek Date: Wed, 18 Oct 2017 07:39:30 +0000 (+0200) Subject: man: recommend using /var/lib/machines in systemd-nspawn(1) X-Git-Tag: v236~291^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=551072321e2beb97e2fb6a195c40bdc7612cbb51;p=thirdparty%2Fsystemd.git man: recommend using /var/lib/machines in systemd-nspawn(1) Also update the instruction to latest Fedora version. --- diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 3951e32e8f5..b741a1fff92 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -1075,14 +1075,17 @@ Build and boot a minimal Fedora distribution in a container - # dnf -y --releasever=25 --installroot=/srv/mycontainer \ + # dnf -y --releasever=27 --installroot=/var/lib/machines/f27container \ --disablerepo='*' --enablerepo=fedora --enablerepo=updates install \ systemd passwd dnf fedora-release vim-minimal -# systemd-nspawn -bD /srv/mycontainer +# systemd-nspawn -bD /var/lib/machines/f27container This installs a minimal Fedora distribution into the - directory /srv/mycontainer/ - and then boots an OS in a namespace container in it. + directory /var/lib/machines/f27container + and then boots an OS in a namespace container in it. Because the installation + is located underneath the standard /var/lib/machines/ + directory, it is also possible to start the machine using + systemd-nspawn -M f27container.