summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive3
1 files changed, 2 insertions, 1 deletions
diff --git a/draklive b/draklive
index be0c629..f27232b 100755
--- a/draklive
+++ b/draklive
@@ -679,7 +679,7 @@ sub allocate_partition {
sub allocate_master {
my ($live, $media, $dest) = @_;
- mkdir_p(dirname($dest));
+
my $geom = {
heads => 16,
sectors => 63, # sectors per track
@@ -689,6 +689,7 @@ sub allocate_master {
$disk_sectors += $geom->{sectors}; # keep one more track
$geom->{cylinders} = int($disk_sectors / ($geom->{sectors} * $geom->{heads}));
+ mkdir_p(dirname($dest));
MDV::Draklive::Utils::device_allocate_file($dest, $disk_sectors * $common::SECTORSIZE);
my $hd = bless {