### Start
### livedvd-amd64-multilib-20160704.iso
set iso_path=""
export iso_path
loopback loop ${iso_path}
set root=loop

set default=0
set fallback=2
set pager=1

function load_video {
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
  insmod all_video
}

if loadfont ($root)/boot/grub/fonts/unicode.pf2 ; then
   set gfxmode=1024x768
   load_video
   insmod gfxterm
   set locale_dir=$prefix/locale
   terminal_output gfxterm
   insmod gettext
fi

terminal_output gfxterm
insmod gfxmenu
loadfont ($root)/boot/grub/themes/GenGrub/Sans-10.pf2
loadfont ($root)/boot/grub/themes/GenGrub/Sans-12.pf2
loadfont ($root)/boot/grub/themes/GenGrub/Sans-14.pf2
insmod png
set theme=($root)/boot/grub/themes/GenGrub/theme.txt
export theme

if [ x = x$bootlang ]; then
  set bootlang=en_US
fi

if [ x = x$bootkeymap ]; then
   set bootkeymap=us
fi

if [ x = x$acpi_opt ]; then
   unset acpi_opt
fi

if [ x = x$modeset_opt ]; then
   unset modeset_opt
fi

if [ x = x$noefi_opt ]; then
   unset noefi_opt
fi

if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
else
  set timeout=5
fi
play 60 800 1
insmod part_gpt

### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo amd64 multilib' --class gentoo {
  set gfxpayload=keep
  echo "Language: $bootlang"
  echo "Keyboard: $bootkeymap"
  echo 'Loading amd64-multilib 4.5.2 kernel'
  linux /isolinux/gentoo root=/dev/ram0 init=/linuxrc aufs looptype=squashfs loop=/image.squashfs cdroot vconsole.keymap=$bootkeymap locale=$bootlang $modeset_opt $nox $acpi_opt console=tty1 -- isoboot=${iso_path}
  echo 'Loading initial ramdisk ...'
  initrd /isolinux/gentoo.xz
}
submenu 'Advanced Options' --class advanced {
  submenu 'Boot Options' --class advanced {
    menuentry 'Console mode (no Desktop)' --class term {
      echo 'Please wait...'
      set nox="nox"
      export nox
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Disable Kernel Mode Setting (KMS)' --class kms {
      echo 'Disabling Kernel Mode Setting...'
      set modeset_opt="nomodeset"
      export modeset_opt
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Disable ACPI' --class acpi {
      echo 'Disabling ACPI...'
      set acpi_opt="noacpi acpi=off"
      export acpi_opt
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Disable EFI' --class efi {
      echo 'Disabling EFI...'
      set noefi_opt="noefi"
      export noefi_opt
      configfile /boot/grub/grub.cfg
    }
  }
  submenu 'Language Selection' --class lang {
    menuentry 'Amharic' {
      echo 'Switching to: $chosen'
      set lang=am_ET
      set bootlang=am_ET
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Arabic' {
      echo 'Switching to: $chosen'
      set lang=ar_EG
      set bootlang=ar_EG
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Asturianu' {
      echo 'Switching to: $chosen'
      set lang=ast_ES
      set bootlang=ast_ES
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Беларуская' {
      echo 'Switching to: $chosen'
      set lang=be_BY
      set bootlang=be_BY
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Български' {
      echo 'Switching to: $chosen'
      set lang=bg_BG
      set bootlang=bg_BG
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Bengali' {
      echo 'Switching to: $chosen'
      set lang=bn_BD
      set bootlang=bn_BD
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Bosanski' {
      echo 'Switching to: $chosen'
      set lang=bs_BA
      set bootlang=bs_BA
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Català' {
      echo 'Switching to: $chosen'
      set lang=ca_ES
      set bootlang=ca_ES
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Čeština' {
      echo 'Switching to: $chosen'
      set lang=cs_CZ
      set bootlang=cs_CZ
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Cymraeg' {
      echo 'Switching to: $chosen'
      set lang=cy_GB
      set bootlang=cy_GB
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Dansk' {
      echo 'Switching to: $chosen'
      set lang=da_DK
      set bootlang=da_DK
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Deutsch' {
      echo 'Switching to: $chosen'
      set lang=de_DE
      set bootlang=de_DE
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Dzongkha' {
      echo 'Switching to: $chosen'
      set lang=dz_BT
      set bootlang=dz_BT
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Ελληνικά' {
      echo 'Switching to: $chosen'
      set lang=el_GR
      set bootlang=el_GR
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'English' {
      echo 'Switching to: $chosen'
      set lang=en_US
      set bootlang=en_US
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Esperanto' {
      echo 'Switching to: $chosen'
      set lang=eo
      set bootlang=eo
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Español' {
      echo 'Switching to: $chosen'
      set lang=es_ES
      set bootlang=es_ES
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Eesti' {
      echo 'Switching to: $chosen'
      set lang=et_EE
      set bootlang=et_EE
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Euskara' {
      echo 'Switching to: $chosen'
      set lang=eu_ES
      set bootlang=eu_ES
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Suomi' {
      echo 'Switching to: $chosen'
      set lang=fi_FI
      set bootlang=fi_FI
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Français' {
      echo 'Switching to: $chosen'
      set lang=fr_FR
      set bootlang=fr_FR
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Gaeilge' {
      echo 'Switching to: $chosen'
      set lang=ga_IE
      set bootlang=ga_IE
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Galego' {
      echo 'Switching to: $chosen'
      set lang=gl_ES
      set bootlang=gl_ES
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Gujarati' {
      echo 'Switching to: $chosen'
      set lang=gu_IN
      set bootlang=gu_IN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'תירבע' {
      echo 'Switching to: $chosen'
      set lang=he_IL
      set bootlang=he_IL
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Hindi' {
      echo 'Switching to: $chosen'
      set lang=hi_IN
      set bootlang=hi_IN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Hrvatski' {
      echo 'Switching to: $chosen'
      set lang=hr_HR
      set bootlang=hr_HR
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Magyar' {
      echo 'Switching to: $chosen'
      set lang=hu_HU
      set bootlang=hu_HU
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Bahasa Indonesia' {
      echo 'Switching to: $chosen'
      set lang=id_ID
      set bootlang=id_ID
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Italiano' {
      echo 'Switching to: $chosen'
      set lang=it_IT
      set bootlang=it_IT
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry '日本語' {
      echo 'Switching to: $chosen'
      set lang=ja_JP
      set bootlang=ja_JP
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'ქართული' {
      echo 'Switching to: $chosen'
      set lang=ka_GE
      set bootlang=ka_GE
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Қазақ' {
      echo 'Switching to: $chosen'
      set lang=kk_KZ
      set bootlang=kk_KZ
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Khmer' {
      echo 'Switching to: $chosen'
      set lang=km_KH
      set bootlang=km_KH
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry '한국어' {
      echo 'Switching to: $chosen'
      set lang=ko_KR
      set bootlang=ko_KR
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Kurdî' {
      echo 'Switching to: $chosen'
      set lang=ku_TR
      set bootlang=ku_TR
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Lietuviškai' {
      echo 'Switching to: $chosen'
      set lang=lt_LT
      set bootlang=lt_LT
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Latviski' {
      echo 'Switching to: $chosen'
      set lang=lv_LV
      set bootlang=lv_LV
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Македонски' {
      echo 'Switching to: $chosen'
      set lang=mk_MK
      set bootlang=mk_MK
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Malayalam' {
      echo 'Switching to: $chosen'
      set lang=ml_IN
      set bootlang=ml_IN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Marathi' {
      echo 'Switching to: $chosen'
      set lang=mr_IN
      set bootlang=mr_IN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Nepali' {
      echo 'Switching to: $chosen'
      set lang=ne_NP
      set bootlang=ne_NP
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Nederlands' {
      echo 'Switching to: $chosen'
      set lang=nl_NL
      set bootlang=nl_NL
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Norsk bokmål' {
      echo 'Switching to: $chosen'
      set lang=nb_NO
      set bootlang=nb_NO
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Norsk nynorsk' {
      echo 'Switching to: $chosen'
      set lang=nn_NO
      set bootlang=nn_NO
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Punjabi (Gurmukhi)' {
      echo 'Switching to: $chosen'
      set lang=pa_IN
      set bootlang=pa_IN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Polski' {
      echo 'Switching to: $chosen'
      set lang=pl_PL
      set bootlang=pl_PL
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Português do Brasil' {
      echo 'Switching to: $chosen'
      set lang=pt_BR
      set bootlang=pt_BR
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Português' {
      echo 'Switching to: $chosen'
      set lang=pt_PT
      set bootlang=pt_PT
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Română' {
      echo 'Switching to: $chosen'
      set lang=ro_RO
      set bootlang=ro_RO
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Русский' {
      echo 'Switching to: $chosen'
      set lang=ru_RU
      set bootlang=ru_RU
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Sámegillii' {
      echo 'Switching to: $chosen'
      set lang=se_NO
      set bootlang=se_NO
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Slovenčina' {
      echo 'Switching to: $chosen'
      set lang=sk_SK
      set bootlang=sk_SK
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Slovenščina' {
      echo 'Switching to: $chosen'
      set lang=sl_SI
      set bootlang=sl_SI
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Shqip' {
      echo 'Switching to: $chosen'
      set lang=sq_AL
      set bootlang=sq_AL
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Српски' {
      echo 'Switching to: $chosen'
      set lang=sr_RS
      set bootlang=sr_RS
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Svenska' {
      echo 'Switching to: $chosen'
      set lang=sv_SE
      set bootlang=sv_SE
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Tamil' {
      echo 'Switching to: $chosen'
      set lang=ta_IN
      set bootlang=ta_IN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Thai' {
      echo 'Switching to: $chosen'
      set lang=th_TH
      set bootlang=th_TH
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Tagalog' {
      echo 'Switching to: $chosen'
      set lang=tl_PH
      set bootlang=tl_PH
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Türkçe' {
      echo 'Switching to: $chosen'
      set lang=tr_TR
      set bootlang=tr_TR
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Українська' {
      echo 'Switching to: $chosen'
      set lang=uk_UA
      set bootlang=uk_UA
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Tiếng Việt' {
      echo 'Switching to: $chosen'
      set lang=vi_VN
      set bootlang=vi_VN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry 'Wolof' {
      echo 'Switching to: $chosen'
      set lang=wo_SN
      set bootlang=wo_SN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry '中文(简体)' {
      echo 'Switching to: $chosen'
      set lang=zh_CN
      set bootlang=zh_CN
      export bootlang
      configfile /boot/grub/grub.cfg
    }
    menuentry '中文(繁體)' {
      echo 'Switching to: $chosen'
      set lang=zh_TW
      set bootlang=zh_TW
      export bootlang
      configfile /boot/grub/grub.cfg
    }
 }
submenu 'Keyboard Selection' --class keyboard {
    menuentry 'Afghanistan' {
     echo 'Switching to: $chosen'
     set bootkeymap=af
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Albania' {
     echo 'Switching to: $chosen'
     set bootkeymap=al
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Andorra' {
     echo 'Switching to: $chosen'
     set bootkeymap=ad
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Arabic' {
     echo 'Switching to: $chosen'
     set bootkeymap=ara
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Armenia' {
     echo 'Switching to: $chosen'
     set bootkeymap=am
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Asturian' {
     echo 'Switching to: $chosen'
     set bootkeymap=es_ast
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Azerbaijan' {
     echo 'Switching to: $chosen'
     set bootkeymap=az
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Bangladesh' {
     echo 'Switching to: $chosen'
     set bootkeymap=bd
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Belarus' {
     echo 'Switching to: $chosen'
     set bootkeymap=by
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Belgium' {
     echo 'Switching to: $chosen'
     set bootkeymap=be
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Bhutan' {
     echo 'Switching to: $chosen'
     set bootkeymap=bt
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Bosnia' {
     echo 'Switching to: $chosen'
     set bootkeymap=ba
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Brazil' {
     echo 'Switching to: $chosen'
     set bootkeymap=br
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Bulgaria' {
     echo 'Switching to: $chosen'
     set bootkeymap=bg
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Cambodia' {
     echo 'Switching to: $chosen'
     set bootkeymap=kh
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Canada' {
     echo 'Switching to: $chosen'
     set bootkeymap=ca
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Catalan' {
     echo 'Switching to: $chosen'
     set bootkeymap=es_cat
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'China' {
     echo 'Switching to: $chosen'
     set bootkeymap=cn
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Congo' {
     echo 'Switching to: $chosen'
     set bootkeymap=cd
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Croatia' {
     echo 'Switching to: $chosen'
     set bootkeymap=hr
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Czechia' {
     echo 'Switching to: $chosen'
     set bootkeymap=cz
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Denmark' {
     echo 'Switching to: $chosen'
     set bootkeymap=dk
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Dvorak' {
     echo 'Switching to: $chosen'
     set bootkeymap=us_dvorak
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Esperanto' {
     echo 'Switching to: $chosen'
     set bootkeymap=epo
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Estonia' {
     echo 'Switching to: $chosen'
     set bootkeymap=ee
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Ethiopia' {
     echo 'Switching to: $chosen'
     set bootkeymap=et
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Faroes' {
     echo 'Switching to: $chosen'
     set bootkeymap=fo
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Finland' {
     echo 'Switching to: $chosen'
     set bootkeymap=fi
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'France' {
     echo 'Switching to: $chosen'
     set bootkeymap=fr_oss
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Georgia' {
     echo 'Switching to: $chosen'
     set bootkeymap=ge
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Germany' {
     echo 'Switching to: $chosen'
     set bootkeymap=de
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Ghana' {
     echo 'Switching to: $chosen'
     set bootkeymap=gh
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Greece' {
     echo 'Switching to: $chosen'
     set bootkeymap=gr
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Guinea' {
     echo 'Switching to: $chosen'
     set bootkeymap=gn
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Gujarati' {
     echo 'Switching to: $chosen'
     set bootkeymap=in_guj
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Gurmukhi' {
     echo 'Switching to: $chosen'
     set bootkeymap=in_guru
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Hungary' {
     echo 'Switching to: $chosen'
     set bootkeymap=hu
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Iceland' {
     echo 'Switching to: $chosen'
     set bootkeymap=is
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'India' {
     echo 'Switching to: $chosen'
     set bootkeymap=in
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Iran' {
     echo 'Switching to: $chosen'
     set bootkeymap=ir
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Iraq' {
     echo 'Switching to: $chosen'
     set bootkeymap=iq
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Ireland' {
     echo 'Switching to: $chosen'
     set bootkeymap=ie
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Israel' {
     echo 'Switching to: $chosen'
     set bootkeymap=il
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Italy' {
     echo 'Switching to: $chosen'
     set bootkeymap=it
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Japan' {
     echo 'Switching to: $chosen'
     set bootkeymap=jp
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Kannada' {
     echo 'Switching to: $chosen'
     set bootkeymap=in_kan
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Kazakhstan' {
     echo 'Switching to: $chosen'
     set bootkeymap=kz
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Korea' {
     echo 'Switching to: $chosen'
     set bootkeymap=kr
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Kurdish' {
     echo 'Switching to: $chosen'
     set bootkeymap=tr_ku
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Kyrgyzstan' {
     echo 'Switching to: $chosen'
     set bootkeymap=kg
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Laos' {
     echo 'Switching to: $chosen'
     set bootkeymap=la
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Latin America' {
     echo 'Switching to: $chosen'
     set bootkeymap=latam
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Latvia' {
     echo 'Switching to: $chosen'
     set bootkeymap=lv
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Lithuania' {
     echo 'Switching to: $chosen'
     set bootkeymap=lt
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Macedonia' {
     echo 'Switching to: $chosen'
     set bootkeymap=mk
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Malayalam' {
     echo 'Switching to: $chosen'
     set bootkeymap=in_mal
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Maldives' {
     echo 'Switching to: $chosen'
     set bootkeymap=mv
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Malta' {
     echo 'Switching to: $chosen'
     set bootkeymap=mt
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Maori' {
     echo 'Switching to: $chosen'
     set bootkeymap=mao
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Mongolia' {
     echo 'Switching to: $chosen'
     set bootkeymap=mn
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Montenegro' {
     echo 'Switching to: $chosen'
     set bootkeymap=me
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Morocco' {
     echo 'Switching to: $chosen'
     set bootkeymap=ma
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Myanmar' {
     echo 'Switching to: $chosen'
     set bootkeymap=mm
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Nepal' {
     echo 'Switching to: $chosen'
     set bootkeymap=np
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Netherlands' {
     echo 'Switching to: $chosen'
     set bootkeymap=nl
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Nigeria' {
     echo 'Switching to: $chosen'
     set bootkeymap=ng
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Norway' {
     echo 'Switching to: $chosen'
     set bootkeymap=no
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Pakistan' {
     echo 'Switching to: $chosen'
     set bootkeymap=pk
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Poland' {
     echo 'Switching to: $chosen'
     set bootkeymap=pl
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Portugal' {
     echo 'Switching to: $chosen'
     set bootkeymap=pt
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Romania' {
     echo 'Switching to: $chosen'
     set bootkeymap=ro
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Russia' {
     echo 'Switching to: $chosen'
     set bootkeymap=ru
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Saami (Fin.)' {
     echo 'Switching to: $chosen'
     set bootkeymap=fi_smi
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Saami (Nor.)' {
     echo 'Switching to: $chosen'
     set bootkeymap=no_smi
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Saami (Swe.)' {
     echo 'Switching to: $chosen'
     set bootkeymap=se_smi
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Senegal' {
     echo 'Switching to: $chosen'
     set bootkeymap=sn
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Serbia' {
     echo 'Switching to: $chosen'
     set bootkeymap=rs
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Slovakia' {
     echo 'Switching to: $chosen'
     set bootkeymap=sk
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Slovenia' {
     echo 'Switching to: $chosen'
     set bootkeymap=si
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'South Africa' {
     echo 'Switching to: $chosen'
     set bootkeymap=za
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Spain' {
     echo 'Switching to: $chosen'
     set bootkeymap=es
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Sri Lanka' {
     echo 'Switching to: $chosen'
     set bootkeymap=lk
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Sweden' {
     echo 'Switching to: $chosen'
     set bootkeymap=se
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Swiss French' {
     echo 'Switching to: $chosen'
     set bootkeymap=ch_fr
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Swiss German' {
     echo 'Switching to: $chosen'
     set bootkeymap=ch
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Syria' {
     echo 'Switching to: $chosen'
     set bootkeymap=sy
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Tajikistan' {
     echo 'Switching to: $chosen'
     set bootkeymap=tj
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Tamil' {
     echo 'Switching to: $chosen'
     set bootkeymap=in_tam
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Telugu' {
     echo 'Switching to: $chosen'
     set bootkeymap=in_tel
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Thailand' {
     echo 'Switching to: $chosen'
     set bootkeymap=th
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Turkey (Q)' {
     echo 'Switching to: $chosen'
     set bootkeymap=tr
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Turkey (F)' {
     echo 'Switching to: $chosen'
     set bootkeymap=tr_f
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Turkmenistan' {
     echo 'Switching to: $chosen'
     set bootkeymap=tm
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'English UK' {
     echo 'Switching to: $chosen'
     set bootkeymap=gb
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'USA' {
     echo 'Switching to: $chosen'
     set bootkeymap=us
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'USA Intl.' {
     echo 'Switching to: $chosen'
     set bootkeymap=us_intl
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Ukraine' {
     echo 'Switching to: $chosen'
     set bootkeymap=ua
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Uzbekistan' {
     echo 'Switching to: $chosen'
     set bootkeymap=uz
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
    menuentry 'Vietnam' {
     echo 'Switching to: $chosen'
     set bootkeymap=vn
     export bootkeymap
     configfile /boot/grub/grub.cfg
    }
 }
 }
### End