summaryrefslogtreecommitdiffstats
path: root/grub.tpl
blob: cfecd04a34d1a5a945a092b6d94f9a52fcf37c88 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# GRUB menu template for Slackware Live Edition
#
set grubdir="($root)/EFI/BOOT"
export grubdir

set default=0
set timeout=20

# 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

# 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 "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
}

submenu "Non-US Keyboard selection" --hotkey k {
  configfile $grubdir/kbd.cfg
}

submenu "Non-US Language selection" --hotkey l {
  configfile $grubdir/lang.cfg
}

submenu "Non-US Timezone selection" --hotkey t {
  configfile $grubdir/tz.cfg
}

menuentry "Detect/boot any installed operating system" {
  configfile $grubdir/osdetect.cfg
}

menuentry "Memory test with memtest86+" {
  linux ($root)/boot/memtest
}