diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-11-09 09:45:30 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-11-09 09:45:30 +0000 |
commit | 3e8f926a6517507d70129581b626277d6b33ded1 (patch) | |
tree | bd8bb76b40695b8f48a65709c07fc56e329bdd2c /perl-install/bootloader.pm | |
parent | 2048db8902dad7b19e88ea351f456071ca6903cf (diff) | |
download | drakx-3e8f926a6517507d70129581b626277d6b33ded1.tar drakx-3e8f926a6517507d70129581b626277d6b33ded1.tar.gz drakx-3e8f926a6517507d70129581b626277d6b33ded1.tar.bz2 drakx-3e8f926a6517507d70129581b626277d6b33ded1.tar.xz drakx-3e8f926a6517507d70129581b626277d6b33ded1.zip |
allow running with "use strict"
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 2 |
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); |