summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm23
1 files changed, 13 insertions, 10 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 765978360..6429cb00a 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -673,18 +673,21 @@ sub detect_bootloader() {
sub method_choices {
my ($fstab, $bootloader) = @_;
- my %choices = (
- if_(arch() =~ /sparc/,
+ my %choices =
+ arch() =~ /sparc/ ? (
'silo' => N("SILO"),
- ), if_(arch() !~ /sparc|ppc/ && !isLoopback(fsedit::get_root($fstab)) && whereis_binary('lilo'),
- if_(!detect_devices::matching_desc('ProSavageDDR'), 'lilo-graphic' => N("LILO with graphical menu")),
- 'lilo-menu' => N("LILO with text menu"),
- ), if_(arch() !~ /sparc|ppc/ && !isRAID(fsedit::get_root($fstab)) && whereis_binary('grub'),
- 'grub' => N("Grub"),
- ), if_(arch() =~ /ppc/,
+ ) : arch() =~ /ppc/ ? (
'yaboot' => N("Yaboot"),
- ),
- );
+ ) : arch() =~ /ia64/ ? (
+ 'lilo' => N("Elilo"),
+ ) : (
+ if_(!isLoopback(fsedit::get_root($fstab)) && whereis_binary('lilo'),
+ if_(!detect_devices::matching_desc('ProSavageDDR'), 'lilo-graphic' => N("LILO with graphical menu")),
+ 'lilo-menu' => N("LILO with text menu"),
+ ), if_(!isRAID(fsedit::get_root($fstab)) && whereis_binary('grub'),
+ 'grub' => N("Grub"),
+ ),
+ );
my $prefered;
$prefered ||= 'grub' if $::isStandalone && detect_bootloader() =~ /GRUB/;
$prefered ||= 'lilo-' . (member($bootloader->{install}, 'text', 'menu', 'graphic') ? $bootloader->{install} : 'graphic');