25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
|
Subject: addhardware: Don't allow panic option where it isn't supported
|
||
|
From: Cole Robinson crobinso@redhat.com Fri Oct 27 09:47:38 2017 +0200
|
||
|
Date: Fri Oct 27 09:47:38 2017 +0200:
|
||
|
Git: 3be78d1f3f1a3925b3bf04f0ffded21715bcf9e9
|
||
|
|
||
|
Like aarch64, basically any arch that doesn't have an explicit panic
|
||
|
model
|
||
|
|
||
|
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
|
||
|
index 3793006c..cd82cd3e 100644
|
||
|
--- a/virtManager/addhardware.py
|
||
|
+++ b/virtManager/addhardware.py
|
||
|
@@ -404,8 +404,9 @@ class vmmAddHardware(vmmGObjectUI):
|
||
|
True, None)
|
||
|
add_hw_option(_("RNG"), "system-run", PAGE_RNG, True, None)
|
||
|
add_hw_option(_("Panic Notifier"), "system-run", PAGE_PANIC,
|
||
|
- self.conn.check_support(self.conn.SUPPORT_CONN_PANIC_DEVICE),
|
||
|
- _("Not supported for this hypervisor/libvirt combination."))
|
||
|
+ self.conn.check_support(self.conn.SUPPORT_CONN_PANIC_DEVICE) and
|
||
|
+ virtinst.VirtualPanicDevice.get_models(self.vm.get_xmlobj().os),
|
||
|
+ _("Not supported for this hypervisor/libvirt/arch combination."))
|
||
|
|
||
|
def _reset_state(self):
|
||
|
# Storage init
|