neil / rpms / python-blivet

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