chiark / gitweb /
man,units: fix installation of systemd-nspawn@.service and add example
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 8 Nov 2013 04:57:19 +0000 (23:57 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 10 Nov 2013 00:02:53 +0000 (19:02 -0500)
TODO
man/systemd-nspawn.xml
units/systemd-nspawn@.service.in

diff --git a/TODO b/TODO
index b5ffbb29442d6aa46a6328b9f4d0d0625b516b58..e8dc16c8631cc1a5f8b1efb571f0028ff92c1fe6 100644 (file)
--- 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
index c2be6d5446babde16ca2ddb4dbc169d65cd5ff2e..3707a5ec942516ad811ced1621b51525f6ee4dd4 100644 (file)
                 boots an OS in a namespace container in it.</para>
         </refsect1>
 
+        <refsect1>
+                <title>Example 4</title>
+
+                <programlisting># mv ~/arch-tree /var/lib/container/arch
+# systemctl enable systemd-nspawn@arch.service
+# systemctl start systemd-nspawn@arch.service</programlisting>
+
+                <para>This makes the Arch Linux container part of the
+                <filename>multi-user.target</filename> on the host.
+                </para>
+        </refsect1>
+
         <refsect1>
                 <title>Exit status</title>
 
index eca62e3b1753f42627cc2d9be1cc076b753dd56f..8e00736498a2485cdce6ad338def44c82f28d610 100644 (file)
@@ -14,4 +14,4 @@ ExecStart=@bindir@/systemd-nspawn -bjD /var/lib/container/%i
 Type=notify
 
 [Install]
-Also=multi-user.target
+WantedBy=multi-user.target