From: Olaf Hering Subject: [PATCH for-xen-4.5] tools/hotplug: update dependency of var-lib-xenstored.mount Date: Wed, 15 Oct 2014 11:41:27 +0200 Message-ID: <1413366087-5805-1-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Olaf Hering , Wei Liu , Ian Campbell , Stefano Stabellini , Ian Jackson List-Id: xen-devel@lists.xenproject.org After previous change which uses /proc/xen/capabilities as condition the unit file has now a dependency on proc-xen.mount. Add a Requires= to let this unit fail if proc-xen.mount fails. Add an After= as ordering hint. This was noticed with a pvops dom0, in a xenlinux dom0 the proc file is always present. Signed-off-by: Olaf Hering Cc: Ian Campbell Cc: Ian Jackson Cc: Stefano Stabellini Cc: Wei Liu --- This is finally tested with a 3.17 pvops dom0. tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in b/tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in index 64b560f..d5e04db 100644 --- a/tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in +++ b/tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in @@ -1,5 +1,7 @@ [Unit] Description=mount xenstore file system +Requires=proc-xen.mount +After=proc-xen.mount ConditionPathExists=/proc/xen/capabilities RefuseManualStop=true