virt-manager/virtinst-cdrom.diff
Charles Arnold f059e04d7b - bnc#588391 - Send Key in virt-viewer does not work with Netware
VM's 

- Don't automatically connect to xen in the virt-manager.desktop
  file.  This results in an error dialog when only KVM is installed 

- bnc#588215 - virt-manager/vminstall can't install new KVM Guests 

- bnc#585990 - Fix add/remove device for active Xen guests.
  virtman-device-flags.diff
- cleanup spec
  * norootforbuild
  * sort TAGS
- some rpmlint stuff
  * configfile

    existing interfaces. Provision new bridge, bond, and vlan
    devices.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=18
2010-03-19 17:23:36 +00:00

29 lines
1.1 KiB
Diff

Index: virtinst-0.500.2/virtinst/VirtualDisk.py
===================================================================
--- virtinst-0.500.2.orig/virtinst/VirtualDisk.py
+++ virtinst-0.500.2/virtinst/VirtualDisk.py
@@ -1370,14 +1370,18 @@ class VirtualDisk(VirtualDevice):
self.target = "hdc"
return self.target
- # Regular scanning
+ # Start cdrom at 'c' and skip 'c' for non-cdrom
for i in range(maxnode):
gen_t = "%s%c" % (prefix, ord('a') + i)
- if gen_t in except_targets:
- continue
if gen_t not in skip_targets:
- self.target = gen_t
- return self.target
+ if self.device != self.DEVICE_CDROM:
+ if i != ord('c') - ord('a'):
+ self.target = gen_t
+ return self.target
+ else:
+ if i >= ord('c') - ord('a'):
+ self.target = gen_t
+ return self.target
# Check except_targets for any options
for t in except_targets: