X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd-nspawn.xml;h=2fa00e80c0c71696cdae51d87db80f132597d4a3;hb=895aeb27795c00f365ce3b30b1dca549b4f5468e;hp=db2d417e49f83110d31a25ab741fdedb93668970;hpb=acbeb42770e1e99955ebc4464a0439cf741b3aeb;p=elogind.git
diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml
index db2d417e4..2fa00e80c 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.
@@ -131,8 +132,8 @@
-
+ Prints a short help
text and exits.
@@ -146,8 +147,8 @@
-
+ Directory to use as
file system root for the namespace
@@ -157,8 +158,8 @@
-
+ Automatically search
for an init binary and invoke it
@@ -167,8 +168,8 @@
-
+ Run the command
under specified user, create home
@@ -191,8 +192,8 @@
-
+ Makes the container appear in
other hierarchies than the name=systemd:/ one.
@@ -227,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,
@@ -239,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.
@@ -296,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/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.
@@ -318,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
@@ -331,7 +345,8 @@
systemd1,
chroot1,
yum8,
- debootstrap8
+ debootstrap8,
+ pacman8