On Wed, Feb 13, 2019 at 02:27:18AM +0100, Hans van Kranenburg wrote:
> Creating new binary packages etc... is not an option anymore during the
> Buster freeze.

Ok, I can carry myself a startup script calling actual xl directly. But
one thing would be very useful to have in buster - avoid starting
dom0 related services in guest. Otherwise even package installation
fails (if you happen to have the same version of xen packages in dom0
and domU). Would the below patch be acceptable?

-----8<-----

From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
 <marma...@invisiblethingslab.com>
Subject: [PATCH] Do not start dom0 services if running inside domU

Signed-off-by: Marek Marczykowski-Górecki <marma...@invisiblethingslab.com>
---
 debian/xen-utils-common.xen.init | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/xen-utils-common.xen.init b/debian/xen-utils-common.xen.init
index 4b793d5ac2..d73e827514 100644
--- a/debian/xen-utils-common.xen.init
+++ b/debian/xen-utils-common.xen.init
@@ -26,6 +26,11 @@ if [ $? -ne 0 ]; then
        exit 0
 fi
 
+if grep -q '[^0-]' /sys/hypervisor/uuid; then
+       log_warning_msg "Xen guest detected"
+       exit 0
+fi
+
 XENCONSOLED="$ROOT"/bin/xenconsoled
 XENCONSOLED_PIDFILE="/var/run/xenconsoled.pid"
 XENSTORED="$ROOT"/bin/xenstored
-- 
2.17.2


-- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Attachment: signature.asc
Description: PGP signature

Reply via email to