From df07d79cd3d7add4ccb2406f881b9d3d958812cc Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 4 Mar 2004 13:22:48 +0000 Subject: fix & cleanup generating replay & auto_install images (thanks to David Eastcott) --- perl-install/install_steps_interactive.pm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'perl-install/install_steps_interactive.pm') diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 02f032b8f..5cc38719e 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -1278,17 +1278,21 @@ sub configureX { #------------------------------------------------------------------------------ sub generateAutoInstFloppy { my ($o, $replay) = @_; + my @imgs = install_any::getAndSaveAutoInstallFloppies($o, $replay) or return; my $floppy = detect_devices::floppy(); - $o->ask_okcancel('', N("Insert a blank floppy in drive %s", $floppy), 1) or return; - my $dev = devices::make($floppy); - { + my $i; + foreach (@imgs) { + if ($i++) { + $o->ask_okcancel('', N("Please insert another floppy for drivers disk"), 1) or return; + } my $_w = $o->wait_message('', N("Creating auto install floppy...")); - install_any::getAndSaveAutoInstallFloppy($o, $replay, $dev) or return; - } - common::sync(); #- if you shall remove the floppy right after the LED switches off + require commands; + commands::dd("if=$_", 'of=' . devices::make($floppy)); + common::sync(); + } } #------------------------------------------------------------------------------ -- cgit v1.2.1