summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-08-28 20:22:16 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-08-28 20:22:16 +0000
commitb48994c225138c5a1834877f60be771363e63816 (patch)
tree9ca56c3c2a56a76918d7e2059f1258ea727cb42f /perl-install/install_steps_interactive.pm
parent7a9d795053d1bab93c5cca346234d47d1b2b6932 (diff)
downloaddrakx-b48994c225138c5a1834877f60be771363e63816.tar
drakx-b48994c225138c5a1834877f60be771363e63816.tar.gz
drakx-b48994c225138c5a1834877f60be771363e63816.tar.bz2
drakx-b48994c225138c5a1834877f60be771363e63816.tar.xz
drakx-b48994c225138c5a1834877f60be771363e63816.zip
no_comment
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm27
1 files changed, 19 insertions, 8 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 96f2712f0..248cd3afb 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -10,6 +10,7 @@ use vars qw(@ISA);
use common qw(:common);
use partition_table qw(:types);
use install_steps;
+use detect_devices;
use network;
use modules;
use lang;
@@ -134,21 +135,31 @@ sub configureNetwork($) {
-sub createBootdisk($) {
- my ($o) = @_;
-
- if ($o->{mkbootdisk} = $o->ask_yesorno('',
+sub createBootdisk {
+ my ($o, $first_time) = @_;
+ my @l = detect_devices::floppies();
+
+ if ($first_time || @l == 1) {
+ $o->ask_yesorno('',
_("A custom bootdisk provides a way of booting into your Linux system without
depending on the normal bootloader. This is useful if you don't want to install
lilo on your system, or another operating system removes lilo, or lilo doesn't
work with your hardware configuration. A custom bootdisk can also be used with
the Mandrake rescue image, making it much easier to recover from severe system
-failures. Would you like to create a bootdisk for your system?"), !$o->default("mkbootdisk"))) {
+failures. Would you like to create a bootdisk for your system?"), !$o->default("mkbootdisk")) or return;
- $o->ask_warn('', _("Insert a floppy in drive fd0 (aka A:)"));
- my $w = $o->wait_message('', _("Creating bootdisk"));
- $o->SUPER::createBootdisk;
+ $o->{mkbootdisk} = $o->default("mkbootdisk") || 1;
+ } else {
+ @l or die _("Sorry, no floppy drive available");
+
+ $o->{mkbootdisk} = $o->ask_from_list('',
+_("Choose the floppy drive you want to use to make the bootdisk"),
+ \@l, $o->default("mkbootdisk"));
}
+
+ $o->ask_warn('', _("Insert a floppy in floppy drive %s", $o->{mkbootdisk}));
+ my $w = $o->wait_message('', _("Creating bootdisk"));
+ $o->SUPER::createBootdisk;
}
sub setupBootloader($) {