Commit 0837be65 authored by Anton Midyukov's avatar Anton Midyukov

grub: Add/fix --id to cfg

parent bccfe99b
if [ "$grub_platform" = "pc" ]; then
menuentry $"Boot from hard drive" {
menuentry $"Boot from hard drive" --id 'harddisk' {
insmod part_msdos
insmod chain
set oldroot="$root"
......
submenu $"Change language (press F2)" --hotkey 'f2' {
submenu $"Change language (press F2)" --hotkey 'f2' --id 'lang' {
insmod regexp
for langstr in "ru_RU=Russian" "en_US=English" "pt_BR=Portuguese" "kk_KZ=Kazakh" "uk_UA=Ukrainian"; do
regexp -s 2:langname -s 1:langcode '(.*)=(.*)' "$langstr"
......
submenu $"Change Kernel Flavour (press F5)" --hotkey 'f5' {
submenu $"Change Kernel Flavour (press F5)" --hotkey 'f5' --id 'kflavour' {
insmod regexp
regexp -s 1:kflavours -s 2:kflavourstr '(.*) (.*)' "@KFLAVOUR@"
menuentry "${kflavourstr}" {
......
if [ "$grub_platform" = "pc" ]; then
menuentry $"Hardware Info" {
menuentry $"Hardware Info" --id 'hdt' {
linux16 /boot/memdisk
initrd16 /boot/hdt.img
}
......
if [ "$grub_platform" = "efi" ]; then
menuentry $"EFI shell" --id 'EFI shell' {
menuentry $"EFI shell" --id 'efishell' {
chainloader /EFI/shellx64.efi
boot
}
......
if [ "$grub_platform" = "pc" ]; then
menuentry $"Boot from 1st hard/flash drive" {
menuentry $"Boot from 1st hard/flash drive" --id 'sda' {
insmod part_msdos
insmod chain
set oldroot="$root"
......@@ -8,7 +8,7 @@ if [ "$grub_platform" = "pc" ]; then
set root="$oldroot"
}
menuentry $"Boot from 2nd hard/flash drive" {
menuentry $"Boot from 2nd hard/flash drive" --id 'sdb' {
insmod part_msdos
insmod chain
set oldroot="$root"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment