|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] patch to fix xendomains non-fatal error (4.5-unstable)
Actually I was bored and took a stab at it.
Does the following patch work for you?
---8<---
From 57426decaec85af174d8e59421ddad7795643bd7 Mon Sep 17 00:00:00 2001
From: Wei Liu <wei.liu2@xxxxxxxxxx>
Date: Sun, 19 Oct 2014 19:30:22 +0100
Subject: [PATCH] systemd: add xen-init-dom0 service
Also make xendomain service depends on it.
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
tools/hotplug/Linux/systemd/Makefile | 1 +
tools/hotplug/Linux/systemd/xen-init-dom0.service.in | 12 ++++++++++++
tools/hotplug/Linux/systemd/xendomains.service.in | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
create mode 100644 tools/hotplug/Linux/systemd/xen-init-dom0.service.in
diff --git a/tools/hotplug/Linux/systemd/Makefile
b/tools/hotplug/Linux/systemd/Makefile
index 9c58b33..8921e71 100644
--- a/tools/hotplug/Linux/systemd/Makefile
+++ b/tools/hotplug/Linux/systemd/Makefile
@@ -14,6 +14,7 @@ XEN_SYSTEMD_SERVICE += xenconsoled.service
XEN_SYSTEMD_SERVICE += xen-qemu-dom0-disk-backend.service
XEN_SYSTEMD_SERVICE += xendomains.service
XEN_SYSTEMD_SERVICE += xen-watchdog.service
+XEN_SYSTEMD_SERVICE += xen-init-dom0.service
ALL_XEN_SYSTEMD = $(XEN_SYSTEMD_MODULES) \
$(XEN_SYSTEMD_MOUNT) \
diff --git a/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
b/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
new file mode 100644
index 0000000..9a305ff
--- /dev/null
+++ b/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
@@ -0,0 +1,12 @@
+[Unit]
+Description=xen-init-dom0, initialise JSON configuration stub for Dom0
+Requires=xenstored.socket
+After=xenstored.service
+ConditionVirtualization=xen
+
+[Service]
+Type=oneshot
+ExecStart=@LIBEXEC_BIN@/xen-init-dom0
+
+[Install]
+WantedBy=multi-user.target
diff --git a/tools/hotplug/Linux/systemd/xendomains.service.in
b/tools/hotplug/Linux/systemd/xendomains.service.in
index f88c336..8577317 100644
--- a/tools/hotplug/Linux/systemd/xendomains.service.in
+++ b/tools/hotplug/Linux/systemd/xendomains.service.in
@@ -1,7 +1,7 @@
[Unit]
Description=Xendomains - start and stop guests on boot and shutdown
Requires=xenstored.socket
-After=xenstored.service xenconsoled.service
+After=xenstored.service xenconsoled.service xen-init-dom0.service
ConditionVirtualization=xen
[Service]
--
1.7.10.4
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |