From: Zbigniew Jędrzejewski-Szmek Date: Fri, 8 Nov 2013 04:57:19 +0000 (-0500) Subject: man,units: fix installation of systemd-nspawn@.service and add example X-Git-Tag: v209~1491 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=9cb74bcb23dde8488459ca233bf9caee642b8402 man,units: fix installation of systemd-nspawn@.service and add example --- diff --git a/TODO b/TODO index b5ffbb294..e8dc16c86 100644 --- a/TODO +++ b/TODO @@ -504,6 +504,7 @@ Features: - nspawn: maybe add a way to drop additional caps, in addition to add additional caps - nspawn: maybe explicitly reset loginuid? - nspawn: make it work for dwalsh and shared /usr containers -- tmpfs mounts as command line parameters, selinux exec context + - refuses to boot containers without /etc/machine-id (OK?), and with empty /etc/machine-id (not OK). * cryptsetup: - cryptsetup-generator: allow specification of passwords in crypttab itself diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index c2be6d544..3707a5ec9 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -409,6 +409,18 @@ boots an OS in a namespace container in it. + + Example 4 + + # mv ~/arch-tree /var/lib/container/arch +# systemctl enable systemd-nspawn@arch.service +# systemctl start systemd-nspawn@arch.service + + This makes the Arch Linux container part of the + multi-user.target on the host. + + + Exit status diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index eca62e3b1..8e0073649 100644 --- a/units/systemd-nspawn@.service.in +++ b/units/systemd-nspawn@.service.in @@ -14,4 +14,4 @@ ExecStart=@bindir@/systemd-nspawn -bjD /var/lib/container/%i Type=notify [Install] -Also=multi-user.target +WantedBy=multi-user.target