[gnome-boxes] unattended-file: Fix name of floppy device



commit b70a9c75d68b9eb32c0a72a3e34c93fa10a45133
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Jan 9 17:38:57 2015 +0000

    unattended-file: Fix name of floppy device
    
    Floppy device appears as 'fd0', not 'fd' on Linux. This fixes booting of
    Linux systems against 'floppy' script injection method. Currently there
    are none but Fedora's install script supports that if Boxes would choose
    to use that method instead of 'hard disk'.

 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 f6e06b5..9a87eaa 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -351,7 +351,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" : "fd");
+            disk.set_target_dev ((path_format == PathFormat.DOS)? "A" : "fd0");
             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]