From 385e53fcc9f82c256f03a7fa199476426527b886 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 14 Jan 2005 18:59:41 +0000 Subject: since dmidecode can fail to properly detect a floppy drive, don't use it during install (where we don't care if it's a bit slow) --- perl-install/detect_devices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 9b058f525..443e0e6be 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -55,7 +55,7 @@ sub floppies() { my @fds; my @dmis = dmidecode(); # do not try to load floppy if there's no floppy drive: - if (!@dmis || find { $_->{'Internal Reference Designator'} =~ /^(FLOPPY|FDD)$/ && $_->{name} eq 'Port Connector' } @dmis) { + if ($::isInstall || !@dmis || find { $_->{'Internal Reference Designator'} =~ /^(FLOPPY|FDD)$/ && $_->{name} eq 'Port Connector' } @dmis) { eval { modules::load("floppy") if $::isInstall }; if (!$@) { @fds = map { -- cgit v1.2.1