| 1 |
2010-11-04 Michael Tautschnig <mt@debian.org>
|
| 2 |
|
| 3 |
* setup-storage/Sizes.pm: Do not rely on bios_sectors_per_track information
|
| 4 |
for computing the start location of first partition, always use 63 sectors
|
| 5 |
gap. Thanks Mathieu Alorent for extensive testing.
|
| 6 |
Index: trunk/lib/setup-storage/Sizes.pm
|
| 7 |
===================================================================
|
| 8 |
--- trunk.orig/lib/setup-storage/Sizes.pm 2011-02-11 11:27:26.008342021 +0100
|
| 9 |
+++ trunk/lib/setup-storage/Sizes.pm 2011-02-11 11:27:36.676344640 +0100
|
| 10 |
@@ -650,9 +650,9 @@
|
| 11 |
my $next_start = 0;
|
| 12 |
|
| 13 |
if ($FAI::configs{$config}{disklabel} eq "msdos") {
|
| 14 |
- # on msdos disk labels, the first partitions starts at head #1
|
| 15 |
- $next_start = $current_disk->{bios_sectors_per_track} *
|
| 16 |
- $current_disk->{sector_size};
|
| 17 |
+ # on msdos disk labels, the first partitions starts at head #1; well,
|
| 18 |
+ # enforce a 63-sectors-per-track layout
|
| 19 |
+ $next_start = 63 * $current_disk->{sector_size};
|
| 20 |
$min_req_total_space += $next_start;
|
| 21 |
|
| 22 |
# the MBR requires space, too
|