summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/xe-linux-distribution.service1
-rw-r--r--mk/xen-vcpu-hotplug.rules2
2 files changed, 2 insertions, 1 deletions
diff --git a/mk/xe-linux-distribution.service b/mk/xe-linux-distribution.service
index a1cf4b1..4e60a85 100644
--- a/mk/xe-linux-distribution.service
+++ b/mk/xe-linux-distribution.service
@@ -1,5 +1,6 @@
[Unit]
Description=Linux Guest Agent
+ConditionVirtualization=xen
[Service]
ExecStartPre=/usr/share/oem/xs/xe-linux-distribution /var/cache/xe-linux-distribution
diff --git a/mk/xen-vcpu-hotplug.rules b/mk/xen-vcpu-hotplug.rules
index ecb200e..a28f895 100644
--- a/mk/xen-vcpu-hotplug.rules
+++ b/mk/xen-vcpu-hotplug.rules
@@ -1 +1 @@
-ACTION=="add", SUBSYSTEM=="cpu", RUN+="/bin/sh -c '[ ! -e /sys$devpath/online ] || echo 1 > /sys$devpath/online'"
+ACTION=="add", SUBSYSTEM=="cpu", RUN+="/bin/sh -c '( ! /usr/bin/xenstore-exists unique-domain-id 2>/dev/null ) || [ ! -e /sys$devpath/online ] || echo 1 > /sys$devpath/online'"