diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-08-04 03:03:37 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-08-04 03:03:37 +0000 |
commit | 4c13d0350d0d8800d3899692660e5138558b825b (patch) | |
tree | 2fd18c0b6f51d4cd4ebd7b202b3b9275a3498e9e /perl-install/standalone/bootloader-config | |
parent | 2cfecdf41dcddc3a47ee5ff14142cc10dd85bc0e (diff) | |
download | drakx-backup-do-not-use-4c13d0350d0d8800d3899692660e5138558b825b.tar drakx-backup-do-not-use-4c13d0350d0d8800d3899692660e5138558b825b.tar.gz drakx-backup-do-not-use-4c13d0350d0d8800d3899692660e5138558b825b.tar.bz2 drakx-backup-do-not-use-4c13d0350d0d8800d3899692660e5138558b825b.tar.xz drakx-backup-do-not-use-4c13d0350d0d8800d3899692660e5138558b825b.zip |
don't allow unknown kernel names to mess everything
Diffstat (limited to 'perl-install/standalone/bootloader-config')
-rwxr-xr-x | perl-install/standalone/bootloader-config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config index cf2fbcb56..55be9fb51 100755 --- a/perl-install/standalone/bootloader-config +++ b/perl-install/standalone/bootloader-config @@ -98,7 +98,7 @@ sub remove_kernel() { sub add_kernel() { bootloader::create_link_source(); - my $kernel_str = bootloader::vmlinuz2kernel_str($image); + my $kernel_str = bootloader::vmlinuz2kernel_str($image) or die "bad kernel name $image\n"; my $root_part = fs::get::root([ fs::get::fstab($all_hds) ]); my %opts = ( |