diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-08-03 13:32:16 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-08-03 13:32:16 +0000 |
commit | 4687dacbcb54b8592f3a8114c9faa167b9ceb55f (patch) | |
tree | 1ffc4e71ba388831d1705d31264646cce90d5bb6 /draklive | |
parent | a07fc75c9e082ea1612d89658ba3c1bba5eccc4a (diff) | |
download | drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.tar drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.tar.gz drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.tar.bz2 drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.tar.xz drakiso-4687dacbcb54b8592f3a8114c9faa167b9ceb55f.zip |
use correct media layout
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}; |