tools/hotplug: update dependency of var-lib-xenstored.mount
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.
---
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
@@ -1,5 +1,7 @@ [Unit] Description=mount xenstore file system +Requires=proc-xen.mount +After=proc-xen.mount ConditionPathExists=/proc/xen/capabilities RefuseManualStop=true
Quoted 6 lines · Olaf Hering
After previous change which uses
/proc/xen/capabilitiesas 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
Signed-off-by Olaf Hering <[email protected]>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@@ -1,5 +1,7 @@ [Unit] Description=mount xenstore file system +Requires=proc-xen.mount +After=proc-xen.mount ConditionPathExists=/proc/xen/capabilities RefuseManualStop=true
Quoted 10 lines · Ian Campbell
Quoted 6 lines · Olaf Hering
After previous change which uses
/proc/xen/capabilitiesas 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