summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-09-09 15:14:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-09-09 15:14:40 +0000
commitd971a36fcbff51756456391120d472efd82160d9 (patch)
treef57eb54ade2eec91c6d49dc3e12ca30281b15865
parentb91bce1a42ce5406b3d702c05cf78788ace38543 (diff)
downloaddrakx-d971a36fcbff51756456391120d472efd82160d9.tar
drakx-d971a36fcbff51756456391120d472efd82160d9.tar.gz
drakx-d971a36fcbff51756456391120d472efd82160d9.tar.bz2
drakx-d971a36fcbff51756456391120d472efd82160d9.tar.xz
drakx-d971a36fcbff51756456391120d472efd82160d9.zip
see if we have menu.lst first
-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 e585aba34..07bcdd750 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -191,11 +191,11 @@ sub read_grub {
my $global = 1;
my ($e, %b);
- my $grub2dev = read_grub_device_map();
-
my $menu_lst_file = "$::prefix/boot/grub/menu.lst";
-e $menu_lst_file or return;
+ my $grub2dev = read_grub_device_map();
+
foreach (cat_($menu_lst_file)) {
chomp;
s/^\s*//; s/\s*$//;