X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd-nspawn.xml;h=554637d5f1919b0fc223860a3e47fe854c42fffb;hb=fabe5c0e5fce730aa66e10a9c4f9fdd443d7aeda;hp=fef5c2c83a8151336b4069b5ed4f7e9873496f25;hpb=f274ece0f76b5709408821e317e87aef76123db6;p=elogind.git diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index fef5c2c83..554637d5f 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -93,9 +93,10 @@ container. Use a tool like - yum8 - or + yum8, debootstrap8 + or + pacman8 to set up an OS directory tree suitable as file system hierarchy for systemd-nspawn containers. @@ -138,6 +139,13 @@ text and exits. + + + + Prints a version string + and exits. + + @@ -220,8 +228,8 @@ list of capability names, see capabilities7 for more information. Note that the - following capabilities will be - granted in any way: CAP_CHOWN, + following capabilities will be granted + in any way: CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_DAC_READ_SEARCH, CAP_FOWNER, CAP_FSETID, CAP_IPC_OWNER, CAP_KILL, CAP_LEASE, @@ -232,7 +240,9 @@ CAP_SETUID, CAP_SYS_ADMIN, CAP_SYS_CHROOT, CAP_SYS_NICE, CAP_SYS_PTRACE, CAP_SYS_TTY_CONFIG, - CAP_SYS_RESOURCE, CAP_SYS_BOOT. + CAP_SYS_RESOURCE, CAP_SYS_BOOT, + CAP_AUDIT_WRITE, + CAP_AUDIT_CONTROL. @@ -289,13 +299,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. @@ -311,6 +321,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 @@ -324,7 +345,8 @@ systemd1, chroot1, yum8, - debootstrap8 + debootstrap8, + pacman8