diff options
Diffstat (limited to 'app-emulation/libvirt/files/libvirt-0.4.4-kvm-cdrom-fix.patch')
-rw-r--r-- | app-emulation/libvirt/files/libvirt-0.4.4-kvm-cdrom-fix.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app-emulation/libvirt/files/libvirt-0.4.4-kvm-cdrom-fix.patch b/app-emulation/libvirt/files/libvirt-0.4.4-kvm-cdrom-fix.patch deleted file mode 100644 index a073f062bc6b..000000000000 --- a/app-emulation/libvirt/files/libvirt-0.4.4-kvm-cdrom-fix.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -urN libvirt-0.4.4/src/qemu_conf.c libvirt-0.4.4-new/src/qemu_conf.c ---- libvirt-0.4.4/src/qemu_conf.c 2008-06-19 13:15:02.000000000 +0000 -+++ libvirt-0.4.4-new/src/qemu_conf.c 2008-07-02 20:47:51.000000000 +0000 -@@ -2612,11 +2612,18 @@ - break; - } - -- snprintf(opt, PATH_MAX, "file=%s,if=%s,%sindex=%d%s", -- disk->src, qemudBusIdToName(disk->bus, 1), -- media ? media : "", -- idx, -- bootable ? ",boot=on" : ""); -+ if (disk->device == QEMUD_DISK_CDROM) { -+ snprintf(opt, PATH_MAX, "file=%s,if=%s,%sindex=%d", -+ disk->src, qemudBusIdToName(disk->bus, 1), -+ media ? media : "", -+ idx); -+ } else { -+ snprintf(opt, PATH_MAX, "file=%s,if=%s,%sindex=%d%s", -+ disk->src, qemudBusIdToName(disk->bus, 1), -+ media ? media : "", -+ idx, -+ bootable ? ",boot=on" : ""); -+ } - - ADD_ARG_LIT("-drive"); - ADD_ARG_LIT(opt); |