|
|
6fd8521 |
From: Cole Robinson <crobinso@redhat.com>
|
|
|
6fd8521 |
Date: Wed, 8 Aug 2018 14:27:27 -0400
|
|
|
6fd8521 |
Subject: [PATCH virt-manager] create: Support UEFI installs for armv7l
|
|
|
6fd8521 |
|
|
|
6fd8521 |
Will be supported with Fedora 29
|
|
|
6fd8521 |
|
|
|
6fd8521 |
https://fedoraproject.org/wiki/Changes/uEFIforARMv7
|
|
|
6fd8521 |
|
|
|
6fd8521 |
We should probably limit this by selected OS, but that's tricky
|
|
|
6fd8521 |
with the wizard as it is, so lets see if anyone cares
|
|
|
6fd8521 |
|
|
|
6fd8521 |
(cherry picked from commit cab540792f4fc5ad0270d68d41b54a8fbeea5a7b)
|
|
|
6fd8521 |
---
|
|
|
6fd8521 |
virtManager/create.py | 10 +++++-----
|
|
|
6fd8521 |
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
6fd8521 |
|
|
|
6fd8521 |
diff --git a/virtManager/create.py b/virtManager/create.py
|
|
|
6fd8521 |
index 5afe0afe..f0f41ffb 100644
|
|
|
6fd8521 |
--- a/virtManager/create.py
|
|
|
6fd8521 |
+++ b/virtManager/create.py
|
|
|
6fd8521 |
@@ -472,17 +472,17 @@ class vmmCreate(vmmGObjectUI):
|
|
|
6fd8521 |
installable_arch = (self._capsinfo.arch in
|
|
|
6fd8521 |
["i686", "x86_64", "ppc64", "ppc64le", "s390x"])
|
|
|
6fd8521 |
|
|
|
6fd8521 |
- if self._capsinfo.arch == "aarch64":
|
|
|
6fd8521 |
+ if self._capsinfo.arch in ["aarch64", "armv7l"]:
|
|
|
6fd8521 |
try:
|
|
|
6fd8521 |
guest = self.conn.caps.build_virtinst_guest(self._capsinfo)
|
|
|
6fd8521 |
guest.set_uefi_default()
|
|
|
6fd8521 |
installable_arch = True
|
|
|
6fd8521 |
- logging.debug("UEFI found for aarch64, setting it as default.")
|
|
|
6fd8521 |
+ logging.debug("UEFI found, setting it as default.")
|
|
|
6fd8521 |
except Exception as e:
|
|
|
6fd8521 |
installable_arch = False
|
|
|
6fd8521 |
- logging.debug("Error checking for aarch64 UEFI default",
|
|
|
6fd8521 |
+ logging.debug("Error checking for UEFI default",
|
|
|
6fd8521 |
exc_info=True)
|
|
|
6fd8521 |
- msg = _("Failed to setup UEFI for AArch64: %s\n"
|
|
|
6fd8521 |
+ msg = _("Failed to setup UEFI: %s\n"
|
|
|
6fd8521 |
"Install options are limited.") % e
|
|
|
6fd8521 |
self._show_arch_warning(msg)
|
|
|
6fd8521 |
|
|
|
6fd8521 |
@@ -1864,7 +1864,7 @@ class vmmCreate(vmmGObjectUI):
|
|
|
6fd8521 |
self.err.val_err(_("Error setting OS information."), str(e))
|
|
|
6fd8521 |
return None
|
|
|
6fd8521 |
|
|
|
6fd8521 |
- if guest.os.is_arm64():
|
|
|
6fd8521 |
+ if guest.os.is_arm64() or guest.os.is_arm():
|
|
|
6fd8521 |
try:
|
|
|
6fd8521 |
guest.set_uefi_default()
|
|
|
6fd8521 |
except Exception:
|