summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-07 11:35:09 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-07 11:35:09 +0000
commit318750156c819bd1136efa968114d075ef1838a2 (patch)
tree1eb3795ee5d2be60d4a8444bd742bea27916efd2
parent4d1da3d243209e0bd6f571596038d6b1ea55ca2a (diff)
downloaddrakx-318750156c819bd1136efa968114d075ef1838a2.tar
drakx-318750156c819bd1136efa968114d075ef1838a2.tar.gz
drakx-318750156c819bd1136efa968114d075ef1838a2.tar.bz2
drakx-318750156c819bd1136efa968114d075ef1838a2.tar.xz
drakx-318750156c819bd1136efa968114d075ef1838a2.zip
offer 'grub2' choice
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 7d500c3a8..52f278e8b 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1185,6 +1185,7 @@ sub method2text {
my ($method) = @_;
+{
'lilo-menu' => N("LILO with text menu"),
+ 'grub2' => N("GRUB2 with graphical menu"),
'grub-graphic' => N("GRUB with graphical menu"),
'grub-menu' => N("GRUB with text menu"),
'yaboot' => N("Yaboot"),
@@ -1201,6 +1202,8 @@ sub method_choices_raw {
arch() =~ /mips/ ? 'pmon2000' :
arch() =~ /arm/ ? 'uboot' :
(
+ if_(!$b_prefix_mounted || whereis_binary('grub2-reboot', $::prefix),
+ 'grub2'),
if_(!$b_prefix_mounted || whereis_binary('grub', $::prefix),
'grub-graphic', 'grub-menu'),
if_(!$b_prefix_mounted || whereis_binary('lilo', $::prefix),