summaryrefslogtreecommitdiffstats
path: root/grub.tpl
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-12-24 18:14:00 +0100
committer Eric Hameleers <alien@slackware.com>2015-12-24 18:14:00 +0100
commit6ba105175195ed6d8575b82c5193b0d34f1ac8ee (patch)
treedfef8af6434d663bdd089ddb5528c1407fc450d6 /grub.tpl
parentb9bfd78b1956e1c5e0bae3ee183d10b5744a12d7 (diff)
downloadliveslak-6ba105175195ed6d8575b82c5193b0d34f1ac8ee.tar.gz
liveslak-6ba105175195ed6d8575b82c5193b0d34f1ac8ee.tar.xz
Add a themed GRUB2 menu for UEFI boot, these are the actual files used.
Diffstat (limited to 'grub.tpl')
-rw-r--r--grub.tpl127
1 files changed, 52 insertions, 75 deletions
diff --git a/grub.tpl b/grub.tpl
index 8dc19a2..cfecd04 100644
--- a/grub.tpl
+++ b/grub.tpl
@@ -1,91 +1,68 @@
-set default="0"
-set timeout="30"
-set hidden_timeout_quiet=false
+#
+# GRUB menu template for Slackware Live Edition
+#
+set grubdir="($root)/EFI/BOOT"
+export grubdir
-menuentry "Detect/boot any installed operating system" {
- configfile "/EFI/BOOT/osdetect.cfg"
-}
-
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (US English)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 tz=US/Pacific locale=en_US.utf8 kbd=@KBD@
- initrd /boot/initrd.img
-}
-
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Dutch)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=nl tz=Europe/Amsterdam locale=nl_NL.utf8
- initrd /boot/initrd.img
-}
-
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (French)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=fr tz=Europe/Paris locale=fr_FR.utf8
- initrd /boot/initrd.img
-}
+set default=0
+set timeout=20
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (German)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=de tz=Europe/Berlin locale=de_DE.utf8
- initrd /boot/initrd.img
-}
-
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Greek)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=us tz=Europe/Athens locale=el_GR.utf8
- initrd /boot/initrd.img
-}
-
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Norwegian)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=no-latin1 tz=Europe/Oslo locale=nb_NO.utf8
- initrd /boot/initrd.img
-}
+# Slackware Live defaults, can be changed in submenus:
+if [ -z "$sl_kbd" ]; then
+ set sl_kbd="us"
+ export sl_kbd
+fi
+if [ -z "$sl_tz" ]; then
+ set sl_tz="US/Pacific"
+ export sl_tz
+fi
+if [ -z "$sl_lang" ]; then
+ set sl_lang="us american"
+ export sl_lang
+fi
+if [ -z "$sl_locale" ]; then
+ set sl_locale="en_US.utf8"
+ export sl_locale
+fi
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Polish)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=pl tz=Europe/Warsaw locale=pl_PL.utf8
- initrd /boot/initrd.img
-}
+# Determine whether we can show a graphical themed menu:
+insmod font
+if loadfont $grubdir/theme/dejavusansmono.pf2 ; then
+ set gfxmode=auto,640x480
+ export gfxmode
+ # (U)EFI requirement: must support all_video:
+ insmod all_video
+ insmod gfxterm
+ insmod gfxmenu
+ terminal_output gfxterm
+ insmod gettext
+ insmod png
+ set theme=$grubdir/theme/liveslak.txt
+ export theme
+fi
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Portuguese - Brazil)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=br-abnt2 tz=America/Sao_Paulo locale=pt_BR.utf8
- initrd /boot/initrd.img
+menuentry "Start Slackware@DIRSUFFIX@ @LIVEDE@ Live ($sl_lang)" --hotkey b {
+ linux ($root)/boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=$sl_kbd tz=$sl_tz locale=$sl_locale
+ initrd ($root)/boot/initrd.img
}
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Portuguese - Portugal)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=pt-latin1 tz=Europe/Lisbon locale=pt_PT.utf8
- initrd /boot/initrd.img
+submenu "Non-US Keyboard selection" --hotkey k {
+ configfile $grubdir/kbd.cfg
}
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Russian)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=ruwin_cplk-UTF-8 tz=Europe/Moscow locale=ru_RU.utf8
- initrd /boot/initrd.img
+submenu "Non-US Language selection" --hotkey l {
+ configfile $grubdir/lang.cfg
}
-menuentry "Slackware64 14.2 live in Spanish (Latin America)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=la-latin1 tz=America/Costa_Rica locale=es_CR.utf8
- initrd /boot/initrd.img
+submenu "Non-US Timezone selection" --hotkey t {
+ configfile $grubdir/tz.cfg
}
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Swedish)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=sv-latin1 tz=Europe/Stockholm locale=sv_SE.utf8
- initrd /boot/initrd.img
+menuentry "Detect/boot any installed operating system" {
+ configfile $grubdir/osdetect.cfg
}
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Turkish)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=trq tz=Europe/Istanbul locale=tr_TR.utf8
- initrd /boot/initrd.img
+menuentry "Memory test with memtest86+" {
+ linux ($root)/boot/memtest
}
-menuentry "Slackware@DIRSUFFIX@ @SL_VERSION@ Live (Ukrainian)" {
- echo "Loading kernel and initrd. Please wait..."
- linux /boot/generic load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=ua tz=Europe/Kiev locale=uk_UA.utf8
- initrd /boot/initrd.img
-}