My-distro-configs-debian/bootloaders/boot/grub/grub.cfg

437 lines
17 KiB
INI

if loadfont $prefix/font.pf2 ; then
set gfxmode=1024x768
set gfxpayload=keep
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
elif background_image /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
source /boot/grub/config.cfg
# Live boot
menuentry "My-distro Live" --hotkey=l {
linux /live/vmlinuz boot=live components username=user hostname=My-distro quiet splash findiso=${iso_path}
initrd /live/initrd.img
}
submenu "My-distro Live with Localisation Support" {
menuentry "Albanian (sq)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=sq_AL.UTF-8 keyboard-layouts=sq quiet splash
initrd /live/initrd.img
}
menuentry "Amharic (am)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=am_ET keyboard-layouts=am quiet splash
initrd /live/initrd.img
}
menuentry "Arabic (ar)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ar_EG.UTF-8 keyboard-layouts=ar quiet splash
initrd /live/initrd.img
}
menuentry "Asturian (ast)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ast_ES.UTF-8 keyboard-layouts=ast quiet splash
initrd /live/initrd.img
}
menuentry "Basque (eu)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=eu_ES.UTF-8 keyboard-layouts=eu quiet splash
initrd /live/initrd.img
}
menuentry "Belarusian (be)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=be_BY.UTF-8 keyboard-layouts=be quiet splash
initrd /live/initrd.img
}
menuentry "Bangla (bn)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=bn_BD keyboard-layouts=bn quiet splash
initrd /live/initrd.img
}
menuentry "Bosnian (bs)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=bs_BA.UTF-8 keyboard-layouts=bs quiet splash
initrd /live/initrd.img
}
menuentry "Bulgarian (bg)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=bg_BG.UTF-8 keyboard-layouts=bg quiet splash
initrd /live/initrd.img
}
menuentry "Tibetan (bo)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=bo_IN keyboard-layouts=bo quiet splash
initrd /live/initrd.img
}
menuentry "Catalan (ca)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ca_ES.UTF-8 keyboard-layouts=ca quiet splash
initrd /live/initrd.img
}
menuentry "Chinese (Simplified) (zh_CN)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=zh_CN.UTF-8 keyboard-layouts=zh_CN quiet splash
initrd /live/initrd.img
}
menuentry "Chinese (Traditional) (zh_TW)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=zh_TW.UTF-8 keyboard-layouts=zh_TW quiet splash
initrd /live/initrd.img
}
menuentry "Croatian (hr)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=hr_HR.UTF-8 keyboard-layouts=hr quiet splash
initrd /live/initrd.img
}
menuentry "Czech (cs)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=cs_CZ.UTF-8 keyboard-layouts=cs quiet splash
initrd /live/initrd.img
}
menuentry "Danish (da)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=da_DK.UTF-8 keyboard-layouts=da quiet splash
initrd /live/initrd.img
}
menuentry "Dutch (nl)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=nl_NL.UTF-8 keyboard-layouts=nl quiet splash
initrd /live/initrd.img
}
menuentry "Dzongkha (dz)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=dz_BT keyboard-layouts=dz quiet splash
initrd /live/initrd.img
}
menuentry "English (en)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=en_US.UTF-8 keyboard-layouts=en quiet splash
initrd /live/initrd.img
}
menuentry "Esperanto (eo)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=eo.UTF-8 keyboard-layouts=eo quiet splash
initrd /live/initrd.img
}
menuentry "Estonian (et)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=et_EE.UTF-8 keyboard-layouts=et quiet splash
initrd /live/initrd.img
}
menuentry "Finnish (fi)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=fi_FI.UTF-8 keyboard-layouts=fi quiet splash
initrd /live/initrd.img
}
menuentry "French (fr)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=fr_FR.UTF-8 keyboard-layouts=fr quiet splash
initrd /live/initrd.img
}
menuentry "Galician (gl)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=gl_ES.UTF-8 keyboard-layouts=gl quiet splash
initrd /live/initrd.img
}
menuentry "Georgian (ka)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ka_GE.UTF-8 keyboard-layouts=ka quiet splash
initrd /live/initrd.img
}
menuentry "German (de)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=de_DE.UTF-8 keyboard-layouts=de quiet splash
initrd /live/initrd.img
}
menuentry "Greek (el)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=el_GR.UTF-8 keyboard-layouts=el quiet splash
initrd /live/initrd.img
}
menuentry "Gujarati (gu)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=gu_IN keyboard-layouts=gu quiet splash
initrd /live/initrd.img
}
menuentry "Hebrew (he)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=he_IL.UTF-8 keyboard-layouts=he quiet splash
initrd /live/initrd.img
}
menuentry "Hindi (hi)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=hi_IN keyboard-layouts=hi quiet splash
initrd /live/initrd.img
}
menuentry "Hungarian (hu)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=hu_HU.UTF-8 keyboard-layouts=hu quiet splash
initrd /live/initrd.img
}
menuentry "Icelandic (is)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=is_IS.UTF-8 keyboard-layouts=is quiet splash
initrd /live/initrd.img
}
menuentry "Indonesian (id)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=id_ID.UTF-8 keyboard-layouts=id quiet splash
initrd /live/initrd.img
}
menuentry "Irish (ga)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ga_IE.UTF-8 keyboard-layouts=ga quiet splash
initrd /live/initrd.img
}
menuentry "Italian (it)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=it_IT.UTF-8 keyboard-layouts=it quiet splash
initrd /live/initrd.img
}
menuentry "Japanese (ja)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ja_JP.UTF-8 keyboard-layouts=ja quiet splash
initrd /live/initrd.img
}
menuentry "Kazakh (kk)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=kk_KZ.UTF-8 keyboard-layouts=kk quiet splash
initrd /live/initrd.img
}
menuentry "Khmer (km)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=km_KH keyboard-layouts=km quiet splash
initrd /live/initrd.img
}
menuentry "Kannada (kn)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=kn_IN keyboard-layouts=kn quiet splash
initrd /live/initrd.img
}
menuentry "Korean (ko)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ko_KR.UTF-8 keyboard-layouts=ko quiet splash
initrd /live/initrd.img
}
menuentry "Kurdish (ku)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ku_TR.UTF-8 keyboard-layouts=ku quiet splash
initrd /live/initrd.img
}
menuentry "Lao (lo)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=lo_LA keyboard-layouts=lo quiet splash
initrd /live/initrd.img
}
menuentry "Latvian (lv)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=lv_LV.UTF-8 keyboard-layouts=lv quiet splash
initrd /live/initrd.img
}
menuentry "Lithuanian (lt)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=lt_LT.UTF-8 keyboard-layouts=lt quiet splash
initrd /live/initrd.img
}
menuentry "Malayalam (ml)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ml_IN keyboard-layouts=ml quiet splash
initrd /live/initrd.img
}
menuentry "Marathi (mr)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=mr_IN keyboard-layouts=mr quiet splash
initrd /live/initrd.img
}
menuentry "Macedonian (mk)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=mk_MK.UTF-8 keyboard-layouts=mk quiet splash
initrd /live/initrd.img
}
menuentry "Burmese (my)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=my_MM keyboard-layouts=my quiet splash
initrd /live/initrd.img
}
menuentry "Nepali (ne)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ne_NP keyboard-layouts=ne quiet splash
initrd /live/initrd.img
}
menuentry "Northern Sami (se_NO)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=se_NO keyboard-layouts=se_NO quiet splash
initrd /live/initrd.img
}
menuentry "Norwegian Bokmaal (nb_NO)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=nb_NO.UTF-8 keyboard-layouts=nb_NO quiet splash
initrd /live/initrd.img
}
menuentry "Norwegian Nynorsk (nn_NO)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=nn_NO.UTF-8 keyboard-layouts=nn_NO quiet splash
initrd /live/initrd.img
}
menuentry "Persian (fa)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=fa_IR keyboard-layouts=fa quiet splash
initrd /live/initrd.img
}
menuentry "Polish (pl)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=pl_PL.UTF-8 keyboard-layouts=pl quiet splash
initrd /live/initrd.img
}
menuentry "Portuguese (pt)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=pt_PT.UTF-8 keyboard-layouts=pt quiet splash
initrd /live/initrd.img
}
menuentry "Portuguese (Brazil) (pt_BR)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=pt_BR.UTF-8 keyboard-layouts=pt_BR quiet splash
initrd /live/initrd.img
}
menuentry "Punjabi (Gurmukhi) (pa)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=pa_IN keyboard-layouts=pa quiet splash
initrd /live/initrd.img
}
menuentry "Romanian (ro)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ro_RO.UTF-8 keyboard-layouts=ro quiet splash
initrd /live/initrd.img
}
menuentry "Russian (ru)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ru_RU.UTF-8 keyboard-layouts=ru quiet splash
initrd /live/initrd.img
}
menuentry "Sinhala (si)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=si_LK keyboard-layouts=si quiet splash
initrd /live/initrd.img
}
menuentry "Serbian (Cyrillic) (sr)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=sr_RS keyboard-layouts=sr quiet splash
initrd /live/initrd.img
}
menuentry "Slovak (sk)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=sk_SK.UTF-8 keyboard-layouts=sk quiet splash
initrd /live/initrd.img
}
menuentry "Slovenian (sl)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=sl_SI.UTF-8 keyboard-layouts=sl quiet splash
initrd /live/initrd.img
}
menuentry "Spanish (es)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=es_ES.UTF-8 keyboard-layouts=es quiet splash
initrd /live/initrd.img
}
menuentry "Swedish (sv)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=sv_SE.UTF-8 keyboard-layouts=sv quiet splash
initrd /live/initrd.img
}
menuentry "Tagalog (tl)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=tl_PH.UTF-8 keyboard-layouts=tl quiet splash
initrd /live/initrd.img
}
menuentry "Tamil (ta)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ta_IN keyboard-layouts=ta quiet splash
initrd /live/initrd.img
}
menuentry "Telugu (te)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=te_IN keyboard-layouts=te quiet splash
initrd /live/initrd.img
}
menuentry "Tajik (tg)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=tg_TJ.UTF-8 keyboard-layouts=tg quiet splash
initrd /live/initrd.img
}
menuentry "Thai (th)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=th_TH.UTF-8 keyboard-layouts=th quiet splash
initrd /live/initrd.img
}
menuentry "Turkish (tr)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=tr_TR.UTF-8 keyboard-layouts=tr quiet splash
initrd /live/initrd.img
}
menuentry "Uyghur (ug)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=ug_CN keyboard-layouts=ug quiet splash
initrd /live/initrd.img
}
menuentry "Ukrainian (uk)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=uk_UA.UTF-8 keyboard-layouts=uk quiet splash
initrd /live/initrd.img
}
menuentry "Vietnamese (vi)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=vi_VN keyboard-layouts=vi quiet splash
initrd /live/initrd.img
}
menuentry "Welsh (cy)" {
linux /live/vmlinuz boot=live components username=user hostname=My-distro locales=cy_GB.UTF-8 keyboard-layouts=cy quiet splash
initrd /live/initrd.img
}
}
### Commented out till Persistence is working as expected.
menuentry "Persistent My-distro" --hotkey=p {
linux /live/vmlinuz boot=live components username=user hostname=My-distro quiet splash findiso=${iso_path} persistence
initrd /live/initrd.img
}
### Commented out till toram is working as expected.
menuentry "My-distro loaded to RAM" --hotkey=t {
linux /live/vmlinuz boot=live components username=user hostname=My-distro quiet splash findiso=${iso_path} toram
initrd /live/initrd.img
}
#menuentry "Developer Desktop" --hotkey=d {
# linux /live/vmlinuz boot=local ro root=/dev/sdb126 quiet splash findiso=${iso_path}
# initrd /live/initrd.img
#}
# You can add more entries like this
#menuentry "Alternate live boot" {
# linux /live/vmlinuz boot=live components username=user hostname=My-distro quiet splash findiso=${iso_path} custom options here
# initrd /live/initrd.img
#}
#menuentry "Alternate graphical installer" {
# linux custom options here
# initrd
#}
#menuentry "Alternate textual installer" {
# linux custom options here
# initrd
#}
# Installer (if any)
if false; then
source /boot/grub/install_start.cfg
submenu 'Advanced install options ...' --hotkey=a {
source /boot/grub/theme.cfg
source /boot/grub/install.cfg
}
fi
submenu ' Utilities ...' --hotkey=u {
source /boot/grub/theme.cfg
menuentry "My-distro(fail-safe mode)" --hotkey=s {
linux /live/vmlinuz boot=live components username=user hostname=My-distro memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=788
initrd /live/initrd.img
}
# Memtest (if any)
if [ "${grub_platform}" = "pc" ] -a false; then
source /boot/grub/memtest.cfg
fi
# Firmware setup (UEFI)
if [ "${grub_platform}" = "efi" ]; then
menuentry "UEFI Firmware Settings" {
fwsetup
}
fi
}
submenu ' Recovery ...' --hotkey=r {
source /boot/grub/theme.cfg
menuentry "My-distro on sda2" {
linux /live/vmlinuz ro boot=local root=/dev/sda2 quiet splash
initrd /live/initrd.img
}
menuentry "My-distro on sda3" {
linux /live/vmlinuz ro boot=local root=/dev/sda3 quiet splash
initrd /live/initrd.img
}
menuentry "My-distro on mmcblk0p2" {
linux /live/vmlinuz ro boot=local root=/dev/mmcblk0p2 quiet splash
initrd /live/initrd.img
}
menuentry "My-distro on mmcblk0p3" {
linux /live/vmlinuz ro boot=local root=/dev/mmcblk0p3 quiet splash
initrd /live/initrd.img
}
menuentry "My-distro on nvme0n1p2" {
linux /live/vmlinuz ro boot=local root=/dev/nvme0n1p2 quiet splash
initrd /live/initrd.img
}
menuentry "My-distro on nvme0n1p3" {
linux /live/vmlinuz ro boot=local root=/dev/nvme0n1p3 quiet splash
initrd /live/initrd.img
}
#menuentry "My-distro on nvme0n1p4" {
# linux /live/vmlinuz ro boot=local root=/dev/nvme0n1p4 quiet splash
# initrd /live/initrd.img
#}
#menuentry "My-distro on nvme0n1p5" {
# linux /live/vmlinuz ro boot=local root=/dev/nvme0n1p5 quiet splash
# initrd /live/initrd.img
#}
}