aboutsummaryrefslogtreecommitdiff
path: root/modules/grub2/files/grub.cfg
blob: 9b4548fbf048cdf4d4e3c428ab439872d527f443 (plain)
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
insmod regexp
insmod ahci
insmod part_msdos
insmod part_gpt

function load_video {
	if [ x$feature_all_video_module = xy ]; then
		insmod all_video
	else
		insmod efi_gop
		insmod efi_uga
		insmod ieee1275_fb
		insmod vbe
		insmod vga
		insmod video_bochs
		insmod video_cirrus
	fi
}


if loadfont (cbfsdisk)/font.pf2 ; then
	set gfxmode=auto
	load_video
	insmod gfxterm
	set locale_dir=$prefix/locale
	set lang=en_US
	insmod gettext
fi

terminal_input console
terminal_output gfxterm
gfxpayload=keep

if [ x$feature_timeout_style = xy ] ; then
	set timeout_style=menu
	set timeout=1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
	set timeout=5
fi

insmod png
if background_image (cbfsdisk)/background.png; then
	true
fi