[gnome-boxes/wip/set-firmware-only-for-efi: 5/5] vm-configurator: Only set firmware info if it is EFI



commit e1771e5ac63a9a142368755342ac9394f737aabe
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Mar 11 12:53:37 2020 +0100

    vm-configurator: Only set firmware info if it is EFI
    
    Otherwise we just leave the Os firmware empty.

 src/vm-configurator.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 6507ca97..361b5882 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -380,7 +380,8 @@ private static void set_post_install_os_config (Domain domain) {
         os.set_arch (old_os.get_arch ());
         os.set_machine (old_os.get_machine ());
 #if USE_UEFI
-        os.set_firmware (old_os.get_firmware ());
+        if (old_os.get_firmware () == GVirConfig.DomainOsFirmware.EFI)
+            os.set_firmware (GVirConfig.DomainOsFirmware.EFI);
 #endif
 
         domain.set_os (os);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]