[gnome-boxes] vm-configurator: Use UEFI when possible
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-configurator: Use UEFI when possible
- Date: Fri, 4 Oct 2019 13:22:46 +0000 (UTC)
commit 7cb459517195d22a0b8606aa977cdb3e51193d6d
Author: Fabiano FidĂȘncio <fidencio redhat com>
Date: Mon Aug 26 20:36:26 2019 +0300
vm-configurator: Use UEFI when possible
Let's always use UEFI whenever it's possible.
https://gitlab.gnome.org/GNOME/gnome-boxes/issues/199
Signed-off-by: Fabiano FidĂȘncio <fidencio redhat com>
src/vm-configurator.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 68cb0bd1..a91aca86 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -368,6 +368,7 @@ private static void set_post_install_os_config (Domain domain) {
os.set_arch (old_os.get_arch ());
os.set_machine (old_os.get_machine ());
+ os.set_firmware (old_os.get_firmware ());
domain.set_os (os);
}
@@ -398,6 +399,9 @@ private static void set_os_config (Domain domain, InstallerMedia install_media,
if (install_media.prefers_q35)
os.set_machine ("q35");
+ if (supports_efi (install_media, domain_caps))
+ os.set_firmware (GVirConfig.DomainOsFirmware.EFI);
+
var boot_devices = new GLib.List<DomainOsBootDevice> ();
install_media.set_direct_boot_params (os);
boot_devices.append (DomainOsBootDevice.CDROM);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]