mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[libvirt] volumes dev names must be uniq
This commit is contained in:
parent
244bc10010
commit
3d3c04db38
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@
|
|||
<disk type='file' device='disk'>
|
||||
<driver name='qemu' type='<%= vol.format_type %>'/>
|
||||
<source file='<%= vol.path %>'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
<%# we need to ensure a unique target dev -%>
|
||||
<target dev='vd<%= ('a'..'z').to_a[volumes.index(vol)] %>' bus='virtio'/>
|
||||
</disk>
|
||||
<% end -%>
|
||||
<% if iso_file -%>
|
||||
|
|
Loading…
Reference in a new issue