[gnome-boxes/gnome-3-24] unattended: Fix target dev name for floppy nodes



commit 9175cf8db372f09ccaa2cadc704705801425487b
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Fri Sep 29 14:37:35 2017 +0200

    unattended: Fix target dev name for floppy nodes
    
    The name used for the target dev in libvirt XML is only used for
    ordering purpose, and does not necessarily have to be consistent with
    how the dev node would be named on a linux box.
    
    Since http://libvirt.org/git/?p=libvirt.git;a=commit;h=5729746543c
    (libvirt 3.1.0), libvirt actually forbid using "fd0" for the floppy
    target dev name, and defining a domain with such a node returns an
    error:
    XML error: Unknown disk name 'fd0' and no address specified
    
    This breaks Windows 7 unattended installation.
    
    Signed-off-by: Christophe Fergeau <cfergeau redhat com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788336

 src/unattended-installer.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index e0036cc..4e0ba23 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -355,7 +355,7 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
         disk.set_source (disk_file.get_path ());
 
         if (injection_method == InstallScriptInjectionMethod.FLOPPY) {
-            disk.set_target_dev ((path_format == PathFormat.DOS)? "A" : "fd0");
+            disk.set_target_dev ((path_format == PathFormat.DOS)? "A" : "fda");
             disk.set_guest_device_type (DomainDiskGuestDeviceType.FLOPPY);
             disk.set_target_bus (DomainDiskBus.FDC);
         } else {


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