neil / rpms / python-blivet

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