format is raw

This commit is contained in:
mischa 2021-01-19 20:15:28 +01:00
parent 90bafb5cf7
commit 6dc48ff8b8

View File

@ -103,6 +103,8 @@ sub render_vm_conf {
my $_disk_format = $vms{$vm_name}{'format'} || $conf{'conf'}{'FORMAT'};
my $_disk = $conf{'conf'}{'IMAGES'} . "/" . $_instance . "." . $_disk_format;
my $_disk2 = $conf{'conf'}{'IMAGES'} . "/" . $_instance . "_extra." . $_disk_format if $vms{$vm_name}{'disk2'};
$_disk_format = $_disk_format eq "img" ? "raw" : $_disk_format;
my $_owner = $vms{$vm_name}{'owner'} || $vms{$vm_name}{'username'};
my $_memory = $vms{$vm_name}{'memory'} || $conf{'conf'}{'MEMORY'};
my $_boot = $conf{'conf'}{'IMAGES'} . "/bsd.rd";