[gnome-boxes] vm-configurator: Pass DomainCapabilities set_os_config()
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-configurator: Pass DomainCapabilities set_os_config()
- Date: Fri, 4 Oct 2019 13:22:31 +0000 (UTC)
commit 921d0ed00b49882e6e98df9dadcf414aad24d1dd
Author: Fabiano FidĂȘncio <fidencio redhat com>
Date: Mon Aug 26 20:19:39 2019 +0300
vm-configurator: Pass DomainCapabilities set_os_config()
set_os_config() must know about the DomainCapabilities in order to be
able to decide which firmware to use (UEFI or BIOS).
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, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index a73180c6..48479f4d 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -51,7 +51,7 @@ public static Domain create_domain_config (InstallerMedia install_media, string
var virt_type = guest_kvm_enabled (best_caps) ? DomainVirtType.KVM : DomainVirtType.QEMU;
domain.set_virt_type (virt_type);
- set_os_config (domain, install_media, best_caps);
+ set_os_config (domain, install_media, best_caps, domain_caps);
string[] features = {};
if (guest_supports_feature (best_caps, "acpi"))
@@ -372,7 +372,7 @@ private static void set_post_install_os_config (Domain domain) {
domain.set_os (os);
}
- private static void set_os_config (Domain domain, InstallerMedia install_media, CapabilitiesGuest
guest_caps) {
+ private static void set_os_config (Domain domain, InstallerMedia install_media, CapabilitiesGuest
guest_caps, DomainCapabilities domain_caps) {
var os = new DomainOs ();
os.set_os_type (DomainOsType.HVM);
os.set_arch (guest_caps.get_arch ().get_name ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]