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=fef5c2c83a8151336b4069b5ed4f7e9873496f25;hpb=f274ece0f76b5709408821e317e87aef76123db6;p=elogind.git
diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml
index fef5c2c83..834e2ccf1 100644
--- a/man/systemd-nspawn.xml
+++ b/man/systemd-nspawn.xml
@@ -138,6 +138,13 @@
text and exits.
+
+
+
+ Prints a version string
+ and exits.
+
+
@@ -220,8 +227,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 +239,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 +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/mycontainerThis 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 +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
@@ -325,6 +345,7 @@
chroot1,
yum8,
debootstrap8
+ pacman8