Show all possible kernels - needed for i386-efi
This commit is contained in:
parent
74d62ec35c
commit
cb1b553227
|
@ -70,19 +70,16 @@ sub print_kernel {
|
||||||
my %k = %{$t};
|
my %k = %{$t};
|
||||||
my $initrd;
|
my $initrd;
|
||||||
|
|
||||||
# Only print 64-bit kernels
|
$k{"label"} =~ s/\^//;
|
||||||
if ($k{"kernel"} =~ /amd/) {
|
if ($k{"append"} =~ s? (initrd=\S+)??) {
|
||||||
$k{"label"} =~ s/\^//;
|
$initrd = $1;
|
||||||
if ($k{"append"} =~ s? (initrd=\S+)??) {
|
$initrd =~ s?^.*initrd=??;
|
||||||
$initrd = $1;
|
}
|
||||||
$initrd =~ s?^.*initrd=??;
|
print_indent "menuentry '$pre" . $k{"label"} . "' {\n";
|
||||||
}
|
print_indent " set background_color=black\n";
|
||||||
print_indent "menuentry '$pre" . $k{"label"} . "' {\n";
|
print_indent " linux " . $k{"kernel"} . " " . $k{"append"} . "\n";
|
||||||
print_indent " set background_color=black\n";
|
print_indent " initrd $initrd\n";
|
||||||
print_indent " linux " . $k{"kernel"} . " " . $k{"append"} . "\n";
|
print_indent "}\n";
|
||||||
print_indent " initrd $initrd\n";
|
|
||||||
print_indent "}\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub debug {
|
sub debug {
|
||||||
|
|
Loading…
Reference in New Issue