Skip to contentSkip to conversation

tools/hotplug: update dependency of var-lib-xenstored.mount

PATCH In review Olaf Hering 2 participants 3 messages Oct 15, 2014 – Oct 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/hotplug: update dependency of var-lib-xenstored.mount

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.

Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Wei Liu <[email protected]>

---

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(+)
tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in +2 -0
index 64b560f..d5e04db 100644
@@ -1,5 +1,7 @@
 [Unit]
 Description=mount xenstore file system
+Requires=proc-xen.mount
+After=proc-xen.mount
 ConditionPathExists=/proc/xen/capabilities
 RefuseManualStop=true
#1 lore raw
Quoted 6 lines · Olaf Hering

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.

Should this be folded into "tools/hotplug: fix systemd service files for dom0"?

Quoted 25 lines
Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Wei Liu <[email protected]>

---

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(+)
tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in +2 -0
index 64b560f..d5e04db 100644
@@ -1,5 +1,7 @@
 [Unit]
 Description=mount xenstore file system
+Requires=proc-xen.mount
+After=proc-xen.mount
 ConditionPathExists=/proc/xen/capabilities
 RefuseManualStop=true
 
#2 lore raw
Quoted 10 lines · Ian Campbell
Quoted 6 lines · Olaf Hering

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.

Should this be folded into "tools/hotplug: fix systemd service files for dom0"?

Yes, if thats possible.

Olaf