summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-10-09 16:34:45 +0000
committerOlivier Blin <oblin@mandriva.com>2010-10-09 16:34:45 +0000
commit9c44767b4860822dbfc69222786a48ff9b7e616e (patch)
tree2038e8edc84d29f02fe9dec1b7fc3da8250f6c09
parente0dbacd1d09c08ca6e6ecae7831214bd21158f35 (diff)
downloaddrakiso-9c44767b4860822dbfc69222786a48ff9b7e616e.tar
drakiso-9c44767b4860822dbfc69222786a48ff9b7e616e.tar.gz
drakiso-9c44767b4860822dbfc69222786a48ff9b7e616e.tar.bz2
drakiso-9c44767b4860822dbfc69222786a48ff9b7e616e.tar.xz
drakiso-9c44767b4860822dbfc69222786a48ff9b7e616e.zip
use get_disk_master_prefix
-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);
}