[gnome-boxes] unattended: Fix target dev name for floppy nodes
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] unattended: Fix target dev name for floppy nodes
- Date: Mon, 2 Oct 2017 11:18:27 +0000 (UTC)
commit c8cbc2cdc4473923d675fa671ea946d8788b43e1
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>
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]