From eb4cc630c844819c52cf4baddd336f60d220b495 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 26 Nov 2004 11:23:56 +0000 Subject: - geometry XXX/240/63 is quite common, so add 240 to @valid_nb_heads - remove checking that nb_heads is in @valid_nb_heads (this fixes yet another case of the infamous "XP doesn't boot" occuring 10.1 CE, though it should already be fixed via EDD) --- perl-install/partition_table/dos.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/partition_table/dos.pm b/perl-install/partition_table/dos.pm index 23164a286..025dac4cb 100644 --- a/perl-install/partition_table/dos.pm +++ b/perl-install/partition_table/dos.pm @@ -109,7 +109,7 @@ sub is_geometry_valid_for_the_partition_table { #- from parted, thanks! my @valid_nb_sectors = (63, 61, 48, 32, 16); -my @valid_nb_heads = (255, 192, 128, 96, 64, 61, 32, 17, 16); +my @valid_nb_heads = (255, 240, 192, 128, 96, 64, 61, 32, 17, 16); sub guess_geometry_from_partition_table { my ($hd) = @_; @@ -120,7 +120,7 @@ sub guess_geometry_from_partition_table { partition_table::raw::compute_nb_cylinders($geom, $hd->{totalsectors}); log::l("guess_geometry_from_partition_table $hd->{device}: " . geometry_to_string($geom)); - member($geom->{heads}, @valid_nb_heads) && member($geom->{sectors}, @valid_nb_sectors) or return { invalid => 1 }; + member($geom->{sectors}, @valid_nb_sectors) or return { invalid => 1 }; $geom; } -- cgit v1.2.1