summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/partition_table/dos.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/partition_table/dos.pm b/perl-install/partition_table/dos.pm
index d364b0030..ca64d3946 100644
--- a/perl-install/partition_table/dos.pm
+++ b/perl-install/partition_table/dos.pm
@@ -130,12 +130,12 @@ sub geometry_from_edd {
my $geom = { sectors => 0 + cat_("$edd_dir/legacy_sectors_per_track"),
heads => 1 + cat_("$edd_dir/legacy_max_head"),
from_edd => 1 };
+ is_geometry_valid_for_the_partition_table($hd, $geom) or return;
partition_table::raw::compute_nb_cylinders($geom, $hd->{totalsectors});
log::l("geometry_from_edd $hd->{device} $hd->{volume_id}: " . geometry_to_string($geom));
- member($geom->{heads}, @valid_nb_heads) && member($geom->{sectors}, @valid_nb_sectors)
- && $geom;
+ $geom;
}