summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-09 09:45:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-09 09:45:30 +0000
commit3e8f926a6517507d70129581b626277d6b33ded1 (patch)
treebd8bb76b40695b8f48a65709c07fc56e329bdd2c
parent2048db8902dad7b19e88ea351f456071ca6903cf (diff)
downloaddrakx-3e8f926a6517507d70129581b626277d6b33ded1.tar
drakx-3e8f926a6517507d70129581b626277d6b33ded1.tar.gz
drakx-3e8f926a6517507d70129581b626277d6b33ded1.tar.bz2
drakx-3e8f926a6517507d70129581b626277d6b33ded1.tar.xz
drakx-3e8f926a6517507d70129581b626277d6b33ded1.zip
allow running with "use strict"
-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 2ca5e061e..478a20a94 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -270,7 +270,7 @@ sub read_grub_menu_lst {
#- sanitize
foreach my $e (@{$b{entries}}) {
- if ($e->{kernel} =~ /xen/ && @{$e->{modules}} == 2 && $e->{modules}[1] =~ /initrd/) {
+ if ($e->{kernel} =~ /xen/ && @{$e->{modules} || []} == 2 && $e->{modules}[1] =~ /initrd/) {
(my $xen, $e->{xen_append}) = split(' ', $e->{kernel}, 2);
($e->{kernel}, my $initrd) = @{delete $e->{modules}};
$e->{xen} = grub2file($xen, $grub2dev, $fstab);