From 52acde1b1fdb9c845cfa2162cdad4086af137930 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 11 Aug 2003 13:17:17 +0000 Subject: when any::setupBootloader_simple() fail, use any::setupBootloader() afterwards --- perl-install/install_steps_interactive.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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 ebf60d96f..79ea5151a 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -1180,7 +1180,7 @@ sub setupBootloaderBefore { #------------------------------------------------------------------------------ sub setupBootloader { - my ($o) = @_; + my ($o, $ent_number) = @_; if (arch() =~ /ppc/) { my $machtype = detect_devices::get_mac_generation(); if ($machtype !~ /NewWorld/) { @@ -1197,7 +1197,11 @@ N("Error installing aboot, try to force installation even if that destroys the first partition?")); }; } else { - any::setupBootloader_simple($o, $o->{bootloader}, $o->{all_hds}, $o->{fstab}, $o->{security}) or return; + if ($ent_number == 1) { + any::setupBootloader_simple($o, $o->{bootloader}, $o->{all_hds}, $o->{fstab}, $o->{security}) or return; + } else { + any::setupBootloader($o, $o->{bootloader}, $o->{all_hds}, $o->{fstab}, $o->{security}) or return; + } { my $_w = $o->wait_message('', N("Installing bootloader")); -- cgit v1.2.1