diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-07-31 14:18:42 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-07-31 14:18:42 +0000 |
commit | 1133530f081f0a7d04d8264f770fe5716d009a8b (patch) | |
tree | 2176527fb045414618e8ffce4c979a323a50d82f | |
parent | f9969878e05fedc1f12378ddf033185658867f74 (diff) | |
download | draklive-1133530f081f0a7d04d8264f770fe5716d009a8b.tar draklive-1133530f081f0a7d04d8264f770fe5716d009a8b.tar.gz draklive-1133530f081f0a7d04d8264f770fe5716d009a8b.tar.bz2 draklive-1133530f081f0a7d04d8264f770fe5716d009a8b.tar.xz draklive-1133530f081f0a7d04d8264f770fe5716d009a8b.zip |
style
-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 { |