From a2543d3261ab5681e434348029495007943329e3 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 30 Oct 2009 19:06:21 +0000 Subject: do not try to add failsafe entry if not kernel is added --- perl-install/bootloader.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 3e64c39c3..fabd82a8f 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1058,7 +1058,8 @@ sub suggest { } add_kernel($bootloader, $kernels[0], - { root => $root, label => 'failsafe', append => 'failsafe' }); + { root => $root, label => 'failsafe', append => 'failsafe' }) + if @kernels; if (arch() =~ /ppc/) { #- if we identified a MacOS partition earlier - add it -- cgit v1.2.1