diff options
-rwxr-xr-x | draklive | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |