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