diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-03-12 05:51:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-03-12 05:51:12 +0000 |
commit | 0114331542c205c53fb4814bd9af5f403523a962 (patch) | |
tree | 6089faf6a189fe6e6a5271b97a49780b297f6249 /perl-install | |
parent | 66bf7cb39eaa029450a9ceb44651742c197c896d (diff) | |
download | drakx-backup-do-not-use-0114331542c205c53fb4814bd9af5f403523a962.tar drakx-backup-do-not-use-0114331542c205c53fb4814bd9af5f403523a962.tar.gz drakx-backup-do-not-use-0114331542c205c53fb4814bd9af5f403523a962.tar.bz2 drakx-backup-do-not-use-0114331542c205c53fb4814bd9af5f403523a962.tar.xz drakx-backup-do-not-use-0114331542c205c53fb4814bd9af5f403523a962.zip |
install grub2-efi instead of grub2 if using UEFI (mga#8886)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/NEWS | 3 | ||||
-rw-r--r-- | perl-install/bootloader.pm | 3 | ||||
-rw-r--r-- | perl-install/install/NEWS | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS index e867382e9..6d61656b8 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,6 @@ +- drakboot: + o install grub2-efi instead of grub2 if using UEFI (mga#8886) + Version 15.26 - 5 March 2013 - include display_installer_help diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 7c372da27..360f20c0f 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -2085,10 +2085,11 @@ sub install { sub ensure_pkg_is_installed { my ($do_pkgs, $bootloader) = @_; + my %pkg = ('grub2' => glob_("/sys/firmware/efi/*") ? 'grub2-efi' : 'grub2'); my %h = ('grub2' => 'grub2-install'); my $main_method = main_method($bootloader->{method}); if (member($main_method, qw(grub grub2 lilo))) { - $do_pkgs->ensure_binary_is_installed($main_method, $h{$main_method} || $main_method, 1) or return 0; + $do_pkgs->ensure_binary_is_installed($pkg{$main_method} || $main_method, $h{$main_method} || $main_method, 1) or return 0; if ($bootloader->{method} eq 'grub-graphic') { $do_pkgs->ensure_is_installed('mageia-gfxboot-theme', '/usr/share/gfxboot/themes/Mageia/boot/message', 1) or return 0; } diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 8397cfd9e..225548385 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- bootloader: + o install grub2-efi instead of grub2 if using UEFI (mga#8886) - fix dialogs popup with drakx-in-chroot Version 15.26 - 5 March 2013 |