diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-09-08 10:38:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-09-08 10:38:23 +0000 |
commit | 6e247f42264ed799cde99cb712eed1c00c9d6f9a (patch) | |
tree | b5008b6719db78cae3a0e502027a04261092b6c2 | |
parent | 1db5580c8f0fc0338c7e626fe05c0ee9478315b0 (diff) | |
download | drakx-6e247f42264ed799cde99cb712eed1c00c9d6f9a.tar drakx-6e247f42264ed799cde99cb712eed1c00c9d6f9a.tar.gz drakx-6e247f42264ed799cde99cb712eed1c00c9d6f9a.tar.bz2 drakx-6e247f42264ed799cde99cb712eed1c00c9d6f9a.tar.xz drakx-6e247f42264ed799cde99cb712eed1c00c9d6f9a.zip |
(write_grub) cleanup: do not opencode path again
-rw-r--r-- | perl-install/bootloader.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index f26b70da3..41b77b5b3 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1776,7 +1776,7 @@ sub write_grub { $bootloader->{terminal} ||= "--timeout=" . ($bootloader->{timeout} || 0) . " console serial"; } elsif ($bootloader->{method} eq 'grub-graphic') { my $bin = '/usr/sbin/grub-gfxmenu'; - if ($bootloader->{gfxmenu} eq '' && -x "$::prefix/usr/sbin/grub-gfxmenu") { + if ($bootloader->{gfxmenu} eq '' && -x "$::prefix$bin") { my $locale = $::o->{locale} || do { require lang; lang::read() }; run_program::rooted($::prefix, $bin, '--lang', $locale->{lang}, '--update-gfxmenu'); $bootloader->{gfxmenu} ||= '/boot/gfxmenu'; |