Vojtech Trefny 66ecf7
From d609cebba48744c97ac7e0461f8827ab63198026 Mon Sep 17 00:00:00 2001
Vojtech Trefny 66ecf7
From: Vojtech Trefny <vtrefny@redhat.com>
Vojtech Trefny 66ecf7
Date: Thu, 10 Jun 2021 16:58:42 +0200
Vojtech Trefny 66ecf7
Subject: [PATCH] Fix util.virt_detect on Xen
Vojtech Trefny 66ecf7
Vojtech Trefny 66ecf7
Xen is apparently still alive so we should return True for it too.
Vojtech Trefny 66ecf7
---
Vojtech Trefny 66ecf7
 blivet/util.py | 2 +-
Vojtech Trefny 66ecf7
 1 file changed, 1 insertion(+), 1 deletion(-)
Vojtech Trefny 66ecf7
Vojtech Trefny 66ecf7
diff --git a/blivet/util.py b/blivet/util.py
Vojtech Trefny 66ecf7
index 3bebb003..af60210b 100644
Vojtech Trefny 66ecf7
--- a/blivet/util.py
Vojtech Trefny 66ecf7
+++ b/blivet/util.py
Vojtech Trefny 66ecf7
@@ -1130,4 +1130,4 @@ def detect_virt():
Vojtech Trefny 66ecf7
     except (safe_dbus.DBusCallError, safe_dbus.DBusPropertyError):
Vojtech Trefny 66ecf7
         return False
Vojtech Trefny 66ecf7
     else:
Vojtech Trefny 66ecf7
-        return vm[0] in ('qemu', 'kvm')
Vojtech Trefny 66ecf7
+        return vm[0] in ('qemu', 'kvm', 'xen')
Vojtech Trefny 66ecf7
-- 
Vojtech Trefny 66ecf7
2.31.1
Vojtech Trefny 66ecf7