summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-05-04 04:07:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-05-04 04:07:42 +0000
commit4d8538d5b2cb7db89456f93a4c7f09f45ac0c56e (patch)
tree43f153ff2550ed640a61da9892e43a18bb43e4ed
parent4bc040d207146265da188ed7aa96e38fc4be943b (diff)
downloaddrakx-4d8538d5b2cb7db89456f93a4c7f09f45ac0c56e.tar
drakx-4d8538d5b2cb7db89456f93a4c7f09f45ac0c56e.tar.gz
drakx-4d8538d5b2cb7db89456f93a4c7f09f45ac0c56e.tar.bz2
drakx-4d8538d5b2cb7db89456f93a4c7f09f45ac0c56e.tar.xz
drakx-4d8538d5b2cb7db89456f93a4c7f09f45ac0c56e.zip
lilo and grub are launched chrooted, so look for them in $::prefix
(it worked during install since PATH contains /mnt/sbin and the like)
-rw-r--r--perl-install/bootloader.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index c41207a61..bf73442f0 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -860,8 +860,8 @@ sub method_choices_raw() {
arch() =~ /ppc/ ? 'yaboot' :
arch() =~ /ia64/ ? 'lilo' :
(
- if_(whereis_binary('lilo'), 'lilo-graphic', 'lilo-menu'),
- if_(whereis_binary('grub'), 'grub'),
+ if_(whereis_binary('lilo', $::prefix), 'lilo-graphic', 'lilo-menu'),
+ if_(whereis_binary('grub', $::prefix), 'grub'),
);
}
sub method_choices {