diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-10-30 19:06:21 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-10-30 19:06:21 +0000 |
commit | a2543d3261ab5681e434348029495007943329e3 (patch) | |
tree | f35bb65ac0b0e624f50d143f754619de66cf6d3f | |
parent | 146b08ab0381469d3299577b5f2c59e3b76da103 (diff) | |
download | drakx-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
-rw-r--r-- | perl-install/bootloader.pm | 3 |
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 |