parse_isolinux: Support grub menuentry shortcuts for UEFI boot menus

Closes: #798908
This commit is contained in:
Steve McIntyre 2015-10-07 15:39:17 +01:00
parent 47188acf25
commit f7e2367bfd
2 changed files with 15 additions and 12 deletions

2
debian/changelog vendored
View File

@ -16,6 +16,8 @@ debian-cd (3.1.13-deb7u1) UNRELEASED; urgency=low
checksums in bt-$type too checksums in bt-$type too
+ generate_di+k_list: update mips* kernel packages + generate_di+k_list: update mips* kernel packages
+ update-cd: Check for file size on update CD/DVD generation + update-cd: Check for file size on update CD/DVD generation
+ parse_isolinux: Support grub menuentry shortcuts for UEFI boot menus.
Closes: #798908
-- Steve McIntyre <93sam@debian.org> Mon, 17 June 2013 15:44:32 +0100 -- Steve McIntyre <93sam@debian.org> Mon, 17 June 2013 15:44:32 +0100

View File

@ -69,20 +69,21 @@ sub print_kernel {
my $t = shift; my $t = shift;
my %k = %{$t}; my %k = %{$t};
my $initrd; my $initrd;
my $hotkey = "";
# Only print 64-bit kernels if ($k{"label"} =~ m,\^(\S),) {
if ($k{"kernel"} =~ /amd/) { $hotkey = lc "--hotkey=$1 ";
$k{"label"} =~ s/\^//; $k{"label"} =~ s/\^//;
}
if ($k{"append"} =~ s? (initrd=\S+)??) { if ($k{"append"} =~ s? (initrd=\S+)??) {
$initrd = $1; $initrd = $1;
$initrd =~ s?^.*initrd=??; $initrd =~ s?^.*initrd=??;
} }
print_indent "menuentry '$pre" . $k{"label"} . "' {\n"; print_indent "menuentry $hotkey'$pre" . $k{"label"} . "' {\n";
print_indent " set background_color=black\n"; print_indent " set background_color=black\n";
print_indent " linux " . $k{"kernel"} . " " . $k{"append"} . "\n"; print_indent " linux " . $k{"kernel"} . " " . $k{"append"} . "\n";
print_indent " initrd $initrd\n"; print_indent " initrd $initrd\n";
print_indent "}\n"; print_indent "}\n";
}
} }
sub debug { sub debug {