From 7978b0a3ffe13c32afe5ab97f56930303b2b5588 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 8 Feb 2005 16:13:28 +0000 Subject: when the partition table is empty, try to see if we are not using the plain disk --- perl-install/fsedit.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'perl-install/fsedit.pm') diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 86278aaeb..fd2f89e04 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -160,8 +160,12 @@ sub get_hds { my $handled; eval { catch_cdie { - partition_table::read($hd); - compare_with_proc_partitions($hd) if $::isInstall; + partition_table::read($hd); + if (listlength(partition_table::get_normal_parts($hd)) == 0) { + $handled = 1 if $handle_die_and_cdie->(); + } else { + compare_with_proc_partitions($hd) if $::isInstall; + } } sub { my $err = $@; if ($handle_die_and_cdie->()) { -- cgit v1.2.1