neil / rpms / python-blivet

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