valeriyvdovin / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0097-man-units-fix-installation-of-systemd-nspawn-.servic.patch

65878a
From a3794196f13a2fd47d61517a304c15e162a6c06a Mon Sep 17 00:00:00 2001
65878a
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
65878a
Date: Thu, 7 Nov 2013 23:57:19 -0500
65878a
Subject: [PATCH] man,units: fix installation of systemd-nspawn@.service and
65878a
 add example
65878a
65878a
---
65878a
 TODO                             |  1 +
65878a
 man/systemd-nspawn.xml           | 12 ++++++++++++
65878a
 units/systemd-nspawn@.service.in |  2 +-
65878a
 3 files changed, 14 insertions(+), 1 deletion(-)
65878a
65878a
diff --git a/TODO b/TODO
65878a
index 07269f4..ad4b733 100644
65878a
--- a/TODO
65878a
+++ b/TODO
65878a
@@ -493,6 +493,7 @@ Features:
65878a
   - nspawn: maybe add a way to drop additional caps, in addition to add additional caps
65878a
   - nspawn: maybe explicitly reset loginuid?
65878a
   - nspawn: make it work for dwalsh and shared /usr containers -- tmpfs mounts as command line parameters, selinux exec context
65878a
+  - refuses to boot containers without /etc/machine-id (OK?), and with empty /etc/machine-id (not OK).
65878a
 
65878a
 * cryptsetup:
65878a
   - cryptsetup-generator: allow specification of passwords in crypttab itself
65878a
diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml
65878a
index 7d450f9..ba9e516 100644
65878a
--- a/man/systemd-nspawn.xml
65878a
+++ b/man/systemd-nspawn.xml
65878a
@@ -428,6 +428,18 @@
65878a
         </refsect1>
65878a
 
65878a
         <refsect1>
65878a
+                <title>Example 4</title>
65878a
+
65878a
+                <programlisting># mv ~/arch-tree /var/lib/container/arch
65878a
+# systemctl enable systemd-nspawn@arch.service
65878a
+# systemctl start systemd-nspawn@arch.service</programlisting>
65878a
+
65878a
+                <para>This makes the Arch Linux container part of the
65878a
+                <filename>multi-user.target</filename> on the host.
65878a
+                </para>
65878a
+        </refsect1>
65878a
+
65878a
+        <refsect1>
65878a
                 <title>Exit status</title>
65878a
 
65878a
                 <para>The exit code of the program executed in the
65878a
diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in
65878a
index eca62e3..8e00736 100644
65878a
--- a/units/systemd-nspawn@.service.in
65878a
+++ b/units/systemd-nspawn@.service.in
65878a
@@ -14,4 +14,4 @@ ExecStart=@bindir@/systemd-nspawn -bjD /var/lib/container/%i
65878a
 Type=notify
65878a
 
65878a
 [Install]
65878a
-Also=multi-user.target
65878a
+WantedBy=multi-user.target