[Fai-commit] r6186 - branches/experimental/patches
Michael Tautschnig
mt at alioth.debian.org
Mon Nov 8 15:39:31 UTC 2010
Author: mt
Date: 2010-11-08 15:39:21 +0000 (Mon, 08 Nov 2010)
New Revision: 6186
Added:
branches/experimental/patches/setup-storage_hardcode-63-sectors
Modified:
branches/experimental/patches/series
Log:
Hardcode 63 sectors gap at beginning of disk; disk geometries are fake anyway
Modified: branches/experimental/patches/series
===================================================================
--- branches/experimental/patches/series 2010-11-08 14:48:44 UTC (rev 6185)
+++ branches/experimental/patches/series 2010-11-08 15:39:21 UTC (rev 6186)
@@ -22,3 +22,4 @@
grub-in-target
setup-storage_pvcreate-old-lvm
setup-storage_improved-parted-parser-error
+setup-storage_hardcode-63-sectors
Added: branches/experimental/patches/setup-storage_hardcode-63-sectors
===================================================================
--- branches/experimental/patches/setup-storage_hardcode-63-sectors (rev 0)
+++ branches/experimental/patches/setup-storage_hardcode-63-sectors 2010-11-08 15:39:21 UTC (rev 6186)
@@ -0,0 +1,22 @@
+2010-11-04 Michael Tautschnig <mt at debian.org>
+
+ * setup-storage/Sizes.pm: Do not rely on bios_sectors_per_track information
+ for computing the start location of first partition, always use 63 sectors
+ gap. Thanks Mathieu Alorent for extensive testing.
+Index: trunk/lib/setup-storage/Sizes.pm
+===================================================================
+--- trunk.orig/lib/setup-storage/Sizes.pm
++++ trunk/lib/setup-storage/Sizes.pm
+@@ -639,9 +639,9 @@
+ my $next_start = 0;
+
+ if ($FAI::configs{$config}{disklabel} eq "msdos") {
+- # on msdos disk labels, the first partitions starts at head #1
+- $next_start = $current_disk->{bios_sectors_per_track} *
+- $current_disk->{sector_size};
++ # on msdos disk labels, the first partitions starts at head #1; well,
++ # enforce a 63-sectors-per-track layout
++ $next_start = 63 * $current_disk->{sector_size};
+ $min_req_total_space += $next_start;
+
+ } elsif ($FAI::configs{$config}{disklabel} eq "gpt") {
More information about the Fai-commit
mailing list