[gnome-boxes] unattended-installer: Use SATA when q35 machine type is supported



commit 690ed315be20cb4d72fb1a6d0ed6c999352a5d71
Author: Fabiano FidĂȘncio <fidencio redhat com>
Date:   Fri Oct 12 08:19:32 2018 +0200

    unattended-installer: Use SATA when q35 machine type is supported
    
    IDE is not a valid disk bus when using q35 machine type. For those
    cases, we'd be better using SATA as it's the most widely supported.
    
    Related: https://bugzilla.redhat.com/show_bug.cgi?id=1581422
    
    Signed-off-by: Fabiano FidĂȘncio <fidencio redhat com>

 src/unattended-installer.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 6a37e208..e3fd115b 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -379,7 +379,7 @@ public override async bool prepare (ActivityProgress progress = new ActivityProg
         disk.set_source (secondary_disk_file.get_path ());
         disk.set_target_dev ((path_format == PathFormat.DOS)? "E" : "hdd");
         disk.set_guest_device_type (DomainDiskGuestDeviceType.CDROM);
-        disk.set_target_bus (DomainDiskBus.IDE);
+        disk.set_target_bus (prefers_q35? DomainDiskBus.SATA : DomainDiskBus.IDE);
 
         return disk;
     }


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