From d9d77adaae12631847ff1a95409a5a758aca3193 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 20 Jan 2004 10:13:43 +0000 Subject: workaround buggy installkernel that left default value be geater than the current number of entries, thus making drakboot displaying (default-entries_count) spurious "()*" entries which then results in writing back bogus grub conf file. kernel team should just be shuted down :-( --- perl-install/bootloader.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install') diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 48acb42da..af23e2de3 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -132,6 +132,8 @@ sub read_grub() { } $b{nowarn} = 1; + # handle broken installkernel -r: + $b{default} = min($b{default}, scalar(@{$b{entries}}) -1); $b{default} = $b{entries}[$b{default}]{label}; \%b; -- cgit v1.2.1