From 6dc48ff8b8b51f7238721f7a88bcbfd1ee0176b2 Mon Sep 17 00:00:00 2001 From: mischa Date: Tue, 19 Jan 2021 20:15:28 +0100 Subject: [PATCH] format is raw --- deploy.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy.pl b/deploy.pl index 6c964c9..5bf558b 100755 --- a/deploy.pl +++ b/deploy.pl @@ -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";