summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-30 19:06:21 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-30 19:06:21 +0000
commita2543d3261ab5681e434348029495007943329e3 (patch)
treef35bb65ac0b0e624f50d143f754619de66cf6d3f /perl-install/bootloader.pm
parent146b08ab0381469d3299577b5f2c59e3b76da103 (diff)
downloaddrakx-a2543d3261ab5681e434348029495007943329e3.tar
drakx-a2543d3261ab5681e434348029495007943329e3.tar.gz
drakx-a2543d3261ab5681e434348029495007943329e3.tar.bz2
drakx-a2543d3261ab5681e434348029495007943329e3.tar.xz
drakx-a2543d3261ab5681e434348029495007943329e3.zip
do not try to add failsafe entry if not kernel is added
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 2 insertions, 1 deletions
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