if loadfont $prefix/font.pf2 ; then
  set gfxmode=800x600
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
  insmod gfxterm
  insmod png
  terminal_output gfxterm
fi

if background_image /isolinux/splash.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi

insmod play
play 960 440 1 0 4 440 1
if [ ${iso_path} ] ; then
set loopback="findiso=${iso_path}"
fi

menuentry "Debian GNU/Linux Live (kernel 4.9.0-3-amd64)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
submenu "Debian Live with Localisation Support" {
menuentry "Albanian (sq)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=sq_AL.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Amharic (am)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=am_ET "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Arabic (ar)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ar_EG.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Asturian (ast)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ast_ES.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Basque (eu)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=eu_ES.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Belarusian (be)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=be_BY.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Bangla (bn)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=bn_BD "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Bosnian (bs)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=bs_BA.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Bulgarian (bg)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=bg_BG.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Tibetan (bo)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=bo_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "C (C)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=C "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Catalan (ca)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ca_ES.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Chinese (Simplified) (zh_CN)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=zh_CN.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Chinese (Traditional) (zh_TW)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=zh_TW.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Croatian (hr)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=hr_HR.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Czech (cs)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=cs_CZ.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Danish (da)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=da_DK.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Dutch (nl)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=nl_NL.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Dzongkha (dz)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=dz_BT "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "English (en)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=en_US.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Esperanto (eo)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=eo.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Estonian (et)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=et_EE.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Finnish (fi)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=fi_FI.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "French (fr)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=fr_FR.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Galician (gl)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=gl_ES.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Georgian (ka)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ka_GE.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "German (de)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=de_DE.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Greek (el)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=el_GR.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Gujarati (gu)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=gu_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Hebrew (he)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=he_IL.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Hindi (hi)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=hi_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Hungarian (hu)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=hu_HU.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Icelandic (is)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=is_IS.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Indonesian (id)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=id_ID.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Irish (ga)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ga_IE.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Italian (it)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=it_IT.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Japanese (ja)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ja_JP.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Kazakh (kk)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=kk_KZ.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Khmer (km)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=km_KH "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Kannada (kn)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=kn_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Korean (ko)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ko_KR.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Kurdish (ku)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ku_TR.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Lao (lo)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=lo_LA "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Latvian (lv)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=lv_LV.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Lithuanian (lt)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=lt_LT.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Malayalam (ml)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ml_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Marathi (mr)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=mr_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Macedonian (mk)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=mk_MK.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Burmese (my)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=my_MM "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Nepali (ne)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ne_NP "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Northern Sami (se_NO)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=se_NO "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Norwegian Bokmaal (nb_NO)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=nb_NO.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Norwegian Nynorsk (nn_NO)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=nn_NO.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Persian (fa)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=fa_IR "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Polish (pl)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=pl_PL.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Portuguese (pt)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=pt_PT.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Portuguese (Brazil) (pt_BR)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=pt_BR.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Punjabi (Gurmukhi) (pa)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=pa_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Romanian (ro)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ro_RO.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Russian (ru)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ru_RU.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Sinhala (si)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=si_LK "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Serbian (Cyrillic) (sr)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=sr_RS "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Slovak (sk)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=sk_SK.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Slovenian (sl)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=sl_SI.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Spanish (es)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=es_ES.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Swedish (sv)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=sv_SE.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Tagalog (tl)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=tl_PH.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Tamil (ta)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ta_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Telugu (te)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=te_IN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Tajik (tg)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=tg_TJ.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Thai (th)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=th_TH.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Turkish (tr)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=tr_TR.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Uyghur (ug)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=ug_CN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Ukrainian (uk)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=uk_UA.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Vietnamese (vi)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=vi_VN "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
menuentry "Welsh (cy)" {
  linux  /live/vmlinuz-4.9.0-3-amd64 boot=live components locales=cy_GB.UTF-8 "${loopback}"
  initrd /live/initrd.img-4.9.0-3-amd64
}
}
menuentry "Graphical Debian Installer" {
  linux  /d-i/gtk/vmlinuz append video=vesa:ywrap,mtrr vga=788 "${loopback}"
  initrd /d-i/gtk/initrd.gz
}
menuentry "Debian Installer" {
  linux  /d-i/vmlinuz  "${loopback}"
  initrd /d-i/initrd.gz
}
menuentry "Debian Installer with Speech Synthesis" {
  linux  /d-i/gtk/vmlinuz speakup.synth=soft "${loopback}"
  initrd /d-i/gtk/initrd.gz
}
