From 1ea3578bfb4c6b4ef7b3854ce4561d8bc9afaef4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 17 Sep 2004 10:33:54 +0000 Subject: try to get geometry from EDD --- perl-install/fsedit.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'perl-install/fsedit.pm') diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index ddc6a47fd..1072464c7 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -104,14 +104,16 @@ sub get_hds { my @drives = detect_devices::hds(); - my (@hds, @raw_hds); foreach my $hd (@drives) { $hd->{file} = devices::make($hd->{device}); $hd->{prefix} ||= $hd->{device}; - $hd->{readonly} = $flags->{readonly}; + } + + partition_table::raw::get_geometries(\@drives); - my $h = partition_table::raw::get_geometry($hd->{file}) or log::l("An error occurred while getting the geometry of block device $hd->{file}: $!"), next; - add2hash_($hd, $h); + my (@hds, @raw_hds); + foreach my $hd (@drives) { + $hd->{readonly} = $flags->{readonly}; eval { partition_table::raw::test_for_bad_drives($hd) }; if (my $err = $@) { -- cgit v1.2.1