ovf: implement rudimentary boot order
simply add all parsed disks to the boot order in the order we encounter them (similar to the esxi plugin). Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
468b39fa6c
commit
d4fe3eeacc
@ -244,6 +244,8 @@ sub parse_ovf {
|
||||
# when all the nodes has been found out, we copy the relevant information to
|
||||
# a $pve_disk hash ref, which we push to @disks;
|
||||
|
||||
my $boot_order = [];
|
||||
|
||||
foreach my $item_node (@disk_items) {
|
||||
|
||||
my $disk_node;
|
||||
@ -352,9 +354,11 @@ ovf:Item[rasd:InstanceID='%s']/rasd:ResourceType", $controller_id);
|
||||
};
|
||||
$pve_disk->{virtual_size} = $virtual_size if defined($virtual_size);
|
||||
push @disks, $pve_disk;
|
||||
|
||||
push @$boot_order, $pve_disk_address;
|
||||
}
|
||||
|
||||
$qm->{boot} = "order=" . join(';', @$boot_order) if scalar(@$boot_order) > 0;
|
||||
|
||||
return {qm => $qm, disks => \@disks};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user