summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-08-03 13:32:16 +0000
committerOlivier Blin <oblin@mandriva.com>2009-08-03 13:32:16 +0000
commit4687dacbcb54b8592f3a8114c9faa167b9ceb55f (patch)
tree1ffc4e71ba388831d1705d31264646cce90d5bb6
parenta07fc75c9e082ea1612d89658ba3c1bba5eccc4a (diff)
downloaddrakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.tar
drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.tar.gz
drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.tar.bz2
drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.tar.xz
drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.zip
use correct media layout
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index d230197..9a90d79 100755
--- a/draklive
+++ b/draklive
@@ -696,7 +696,7 @@ sub allocate_master {
my $geom = get_harddisk_geometry($media);
- my $required_sectors = fold_left { $::a + $::b } map { $_->{size} } @{$live->{media}{partitions}};
+ my $required_sectors = fold_left { $::a + $::b } map { $_->{size} } @{$media->{partitions}};
$required_sectors += $geom->{sectors}; # keep one more track
$geom->{cylinders} = int($required_sectors / ($geom->{sectors} * $geom->{heads}));
my $total_sectors = $geom->{cylinders} * $geom->{heads} * $geom->{sectors};