summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormischa <mischa@rx.high5.nl>2021-01-19 20:15:28 +0100
committermischa <mischa@rx.high5.nl>2021-01-19 20:15:28 +0100
commit6dc48ff8b8b51f7238721f7a88bcbfd1ee0176b2 (patch)
treeca050c3fa815d576650b2279437642f79dd95d5e
parent90bafb5cf7606b214af94634e726e6a0879ee919 (diff)
format is raw
-rwxr-xr-xdeploy.pl2
1 files changed, 2 insertions, 0 deletions
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";