From 0da82096be85c1477a062f650d51cf34c860a1c0 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 23 Nov 2004 14:03:08 +0000 Subject: don't use typeOfMBR to check the method on floppy which may not be inserted (part of bugzilla #12213) --- perl-install/bootloader.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 310c00041..29bf33959 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -161,7 +161,10 @@ sub read { } my ($type) = map { - if (my $type = partition_table::raw::typeOfMBR($_)) { + if (m!/fd\d+$!) { + warn "not checking the method on floppy, assuming $main_method is right\n"; + $main_method; + } elsif (my $type = partition_table::raw::typeOfMBR($_)) { warn "typeOfMBR $type on $_ for method $main_method\n" if $ENV{DEBUG}; $type; } else { () } -- cgit v1.2.1