39bfc34504
* Improved save/restore support * Option to view and change disk cache mode * Configurable VNC keygrab sequence (Michal Novotny) - Update to virtinst 0.500.4 * New virt-install --console option for specifying virtio console device * New virt-install --channel option for specifying guest communication channel * New virt-install --boot option. Allows setting post-install boot order, direct kernel/initrd boot, and enabling boot device menu. * New virt-install --initrd-inject option, which enables installation using a _local_ kickstart file (Colin Walters) OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=37
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
Index: virtinst-0.500.4/virtinst/VirtualDisk.py
|
|
===================================================================
|
|
--- virtinst-0.500.4.orig/virtinst/VirtualDisk.py
|
|
+++ virtinst-0.500.4/virtinst/VirtualDisk.py
|
|
@@ -1444,14 +1444,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:
|