summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-08-11 13:17:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-08-11 13:17:17 +0000
commit52acde1b1fdb9c845cfa2162cdad4086af137930 (patch)
treeb14493440ba8640a1e284866cda72817c9c7a0ac /perl-install/install_steps_interactive.pm
parent96179a62f26819b22496e01753b7a3e17d723c20 (diff)
downloaddrakx-52acde1b1fdb9c845cfa2162cdad4086af137930.tar
drakx-52acde1b1fdb9c845cfa2162cdad4086af137930.tar.gz
drakx-52acde1b1fdb9c845cfa2162cdad4086af137930.tar.bz2
drakx-52acde1b1fdb9c845cfa2162cdad4086af137930.tar.xz
drakx-52acde1b1fdb9c845cfa2162cdad4086af137930.zip
when any::setupBootloader_simple() fail, use any::setupBootloader() afterwards
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm8
1 files changed, 6 insertions, 2 deletions
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"));