X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd-nspawn.xml;h=834e2ccf147fef287bb837327db3e9d434737d63;hb=68562936c243a2e2190a7232c4805ffd094e9b3b;hp=2939951a886a775427cc59d74430e580dcc8dfb8;hpb=88d04e31ce0837ebf937ab46c3c39a0d93ab4c7c;p=elogind.git diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 2939951a8..834e2ccf1 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -298,13 +298,13 @@ Example 1 - # yum --releasever=17 --nogpgcheck --installroot ~/fedora-tree/ install yum passwd vim-minimal rootfiles systemd -# systemd-nspawn -D ~/fedora-tree /usr/lib/systemd/systemd + # yum -y --releasever=19 --nogpg --installroot=/srv/mycontainer --disablerepo='*' --enablerepo=fedora install systemd passwd yum fedora-release vim-minimal +# systemd-nspawn -bD /srv/mycontainer This installs a minimal Fedora distribution into - the directory ~/fedora-tree/ - and then boots an OS in a namespace container in it, - with systemd as init system. + the directory /srv/mycontainer/ and + then boots an OS in a namespace container in + it. @@ -320,6 +320,17 @@ + + Example 3 + + # pacstrap -c -d ~/arch-tree/ base +# systemd-nspawn -bD ~/arch-tree/ + + This installs a mimimal Arch Linux distribution into + the directory ~/arch-tree/ and then + boots an OS in a namespace container in it. + + Exit status @@ -334,6 +345,7 @@ chroot1, yum8, debootstrap8 + pacman8