-
Notifications
You must be signed in to change notification settings - Fork 20
/
grub.tpl
77 lines (66 loc) · 1.91 KB
/
grub.tpl
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
69
70
71
72
73
74
75
76
#
# 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="@KBD@"
export sl_kbd
fi
if [ -z "$sl_tz" ]; then
set sl_tz="@TZ@"
export sl_tz
fi
if [ -z "$sl_lang" ]; then
set sl_lang="@LANDSC@"
export sl_lang
fi
if [ -z "$sl_locale" ]; then
set sl_locale="@LOCALE@"
export sl_locale
fi
# Determine whether we can show a graphical themed menu:
insmod font
if loadfont $grubdir/theme/dejavusansmono12.pf2 ; then
loadfont $grubdir/theme/dejavusansmono10.pf2
loadfont $grubdir/theme/dejavusansmono5.pf2
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 @CDISTRO@@DIRSUFFIX@ @SL_VERSION@ @LIVEDE@ Live @VERSION@ ($sl_lang)" --hotkey b {
linux ($root)/boot/generic @KAPPEND@ load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=$sl_kbd tz=$sl_tz locale=$sl_locale xkb=$sl_xkb
initrd ($root)/boot/initrd.img
}
menuentry "Start @CDISTRO@@DIRSUFFIX@ @SL_VERSION@ @LIVEDE@ Live Diskless @VERSION@ ($sl_lang)" --hotkey b {
linux ($root)/boot/generic @KAPPEND@ load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 kbd=$sl_kbd tz=$sl_tz locale=$sl_locale xkb=$sl_xkb toram
initrd ($root)/boot/initrd.img
}
submenu "Non-@ULANG@ Keyboard selection" --hotkey k {
configfile $grubdir/kbd.cfg
}
submenu "Non-@ULANG@ Language selection" --hotkey l {
configfile $grubdir/lang.cfg
}
submenu "Non-@ULANG@ Timezone selection" --hotkey t {
configfile $grubdir/tz.cfg
}
menuentry "Memory test with memtest86+" {
linux ($root)/boot/memtest
}
menuentry "Help on boot parameters" --hotkey h {
set pager=1
cat $grubdir/help.txt
unset pager
}