- fix efi setup
[opensuse:installation-images.git] / data / boot / grub.cfg
1 with_gfx=0
2
3 gfxmode=auto
4 locale_dir=$prefix/locale
5 lang=en_US
6
7 search -f /boot/x86_64/efi --set
8 prefix=($root)/boot/x86_64/grub2-efi
9
10 insmod efi_gop
11 insmod efi_uga
12 insmod gzio
13 insmod gettext
14
15 color_normal=light-gray/black
16 color_highlight=white/light-gray
17
18 if [ "$with_gfx" = 1 ] ; then
19   insmod gfxterm
20   insmod gfxmenu
21   insmod png
22
23   terminal_output gfxterm
24
25   theme=$prefix/themes/openSUSE/theme.txt
26   export theme
27
28   loadfont $prefix/unicode.pf2
29   loadfont $prefix/themes/openSUSE/DejaVuSans10.pf2
30   loadfont $prefix/themes/openSUSE/DejaVuSans12.pf2
31   loadfont $prefix/themes/openSUSE/DejaVuSans-Bold14.pf2
32 fi
33
34 if sleep --interruptible 0 ; then
35   timeout=60
36 fi
37
38 menuentry 'Installation' --class opensuse --class gnu-linux --class gnu --class os {
39   set gfxpayload=keep
40   echo 'Loading kernel ...'
41   linuxefi /boot/x86_64/loader/linux
42   echo 'Loading initial ramdisk ...'
43   initrdefi /boot/x86_64/loader/initrd
44 }
45
46 menuentry 'Rescue System' --class opensuse --class gnu-linux --class gnu {
47   set gfxpayload=keep
48   echo 'Loading kernel ...'
49   linuxefi /boot/x86_64/loader/linux rescue=1
50   echo 'Loading initial ramdisk ...'
51   initrdefi /boot/x86_64/loader/initrd
52 }
53
54 menuentry 'Check Installation Media' --class opensuse --class gnu-linux --class gnu {
55   set gfxpayload=keep
56   echo 'Loading kernel ...'
57   linuxefi /boot/x86_64/loader/linux mediacheck=1
58   echo 'Loading initial ramdisk ...'
59   initrdefi /boot/x86_64/loader/initrd
60 }
61