summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive4
1 files changed, 1 insertions, 3 deletions
diff --git a/draklive b/draklive
index ce0b99e..23e679f 100755
--- a/draklive
+++ b/draklive
@@ -1260,9 +1260,7 @@ sub create_vm_image {
warn "no master image, skipping\n";
}
- my $vm_image = $master;
- $vm_image =~ s/.img$/.$vm_type/;
-
+ my $vm_image = get_disk_master_prefix($live) . ".$vm_type";
run_("qemu-img", "convert", "-O", $vm_type, $master, $vm_image);
}