summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-23 10:50:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-23 10:50:43 +0000
commitfb62b20aca6f56c54d8f3ba97e32f7fd0bcfe3f9 (patch)
tree80de27200debf22c5e618f68bd64ec0c87621859
parentd4a689e7bffda67dba9e9053ee2b37f42fc30e5f (diff)
downloaddrakx-fb62b20aca6f56c54d8f3ba97e32f7fd0bcfe3f9.tar
drakx-fb62b20aca6f56c54d8f3ba97e32f7fd0bcfe3f9.tar.gz
drakx-fb62b20aca6f56c54d8f3ba97e32f7fd0bcfe3f9.tar.bz2
drakx-fb62b20aca6f56c54d8f3ba97e32f7fd0bcfe3f9.tar.xz
drakx-fb62b20aca6f56c54d8f3ba97e32f7fd0bcfe3f9.zip
(suggest_floppy): don't add an entry for non-fd0 drives
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 6483c7958..eb0165df9 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -389,6 +389,9 @@ wait %d seconds for default boot.
sub suggest_floppy {
my ($bootloader) = @_;
+ my $floppy = detect_devices::floppy() or return;
+ $floppy eq 'fd0' or log::l("suggest_floppy: not adding $floppy"), return;
+
add_entry($bootloader->{entries},
{
type => 'other',