summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-17 09:33:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-17 09:33:17 +0000
commitc6022ccdaa53d5a35ecdcce0e33da825e186611c (patch)
tree7e22c37cc48d91f9668fc1f9fdc5726039f4945c /perl-install/bootloader.pm
parentefce46c491c5efca8fdea5083b0382841c44b32e (diff)
downloaddrakx-c6022ccdaa53d5a35ecdcce0e33da825e186611c.tar
drakx-c6022ccdaa53d5a35ecdcce0e33da825e186611c.tar.gz
drakx-c6022ccdaa53d5a35ecdcce0e33da825e186611c.tar.bz2
drakx-c6022ccdaa53d5a35ecdcce0e33da825e186611c.tar.xz
drakx-c6022ccdaa53d5a35ecdcce0e33da825e186611c.zip
- bootloader-config:
o --rebuild-initrds: don't choke on kernel files which have no version in file name (#28772) (thanks to anssi)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 60e473e86..decb3a1d0 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -663,7 +663,7 @@ sub rebuild_initrds {
my %done;
foreach my $v (grep { $_->{initrd} } @{$bootloader->{entries}}) {
- my $kernel_str = vmlinuz2kernel_str($v->{kernel_or_dev});
+ my $kernel_str = vmlinuz2kernel_str($v->{kernel_or_dev}) or next;
my $initrd_long = '/boot/' . kernel_str2initrd_long($kernel_str);
next if $done{$initrd_long}++;