diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-04-03 22:49:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-04-03 22:49:09 +0000 |
commit | d4a1d47fa08a8fa67e7cff99e6c4f41055762ea5 (patch) | |
tree | 7ea837dced7b25381aa6958ac0d9614e117b6d3f /perl-install | |
parent | 53b44143791cff77b22c05dd46e8d8761fdcb5da (diff) | |
download | drakx-d4a1d47fa08a8fa67e7cff99e6c4f41055762ea5.tar drakx-d4a1d47fa08a8fa67e7cff99e6c4f41055762ea5.tar.gz drakx-d4a1d47fa08a8fa67e7cff99e6c4f41055762ea5.tar.bz2 drakx-d4a1d47fa08a8fa67e7cff99e6c4f41055762ea5.tar.xz drakx-d4a1d47fa08a8fa67e7cff99e6c4f41055762ea5.zip |
(suggest): trap strange error. Should not really fix the pb
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/bootloader.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index fd0ef7f61..7add5f1c6 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -296,11 +296,12 @@ wait %d seconds for default boot. label => $isSecure || $isSMP ? 'linux-up' : 'linux-nonfb', root => "/dev/$root", }) if $isSecure || $isSMP || $vga_fb; - add_kernel($prefix, $lilo, $kernelVersion, '', + my $entry = add_kernel($prefix, $lilo, $kernelVersion, '', { label => 'failsafe', root => "/dev/$root", - })->{append} .= " failsafe" unless $lilo->{password}; + }); + $entry->{append} .= " failsafe" if $entry && !$lilo->{password}; #- manage older kernel if installed. foreach (qw(2.2 hack)) { |