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