summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-04 03:03:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-04 03:03:37 +0000
commit4c13d0350d0d8800d3899692660e5138558b825b (patch)
tree2fd18c0b6f51d4cd4ebd7b202b3b9275a3498e9e /perl-install
parent2cfecdf41dcddc3a47ee5ff14142cc10dd85bc0e (diff)
downloaddrakx-4c13d0350d0d8800d3899692660e5138558b825b.tar
drakx-4c13d0350d0d8800d3899692660e5138558b825b.tar.gz
drakx-4c13d0350d0d8800d3899692660e5138558b825b.tar.bz2
drakx-4c13d0350d0d8800d3899692660e5138558b825b.tar.xz
drakx-4c13d0350d0d8800d3899692660e5138558b825b.zip
don't allow unknown kernel names to mess everything
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/bootloader-config2
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 = (