]> git.ozlabs.org Git - petitboot/blob - test/parser/data/grub2-ubuntu-13_04-x86.conf
test/parser: Cleanup Makefile.am
[petitboot] / test / parser / data / grub2-ubuntu-13_04-x86.conf
1 #
2 # DO NOT EDIT THIS FILE
3 #
4 # It is automatically generated by grub-mkconfig using templates
5 # from /etc/grub.d and settings from /etc/default/grub
6 #
7
8 ### BEGIN /etc/grub.d/00_header ###
9 if [ -s $prefix/grubenv ]; then
10   set have_grubenv=true
11   load_env
12 fi
13 set default="0"
14
15 if [ x"${feature_menuentry_id}" = xy ]; then
16   menuentry_id_option="--id"
17 else
18   menuentry_id_option=""
19 fi
20
21 export menuentry_id_option
22
23 if [ "${prev_saved_entry}" ]; then
24   set saved_entry="${prev_saved_entry}"
25   save_env saved_entry
26   set prev_saved_entry=
27   save_env prev_saved_entry
28   set boot_once=true
29 fi
30
31 function savedefault {
32   if [ -z "${boot_once}" ]; then
33     saved_entry="${chosen}"
34     save_env saved_entry
35   fi
36 }
37
38 function recordfail {
39   set recordfail=1
40   if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
41 }
42
43 function load_video {
44   if [ x$feature_all_video_module = xy ]; then
45     insmod all_video
46   else
47     insmod efi_gop
48     insmod efi_uga
49     insmod ieee1275_fb
50     insmod vbe
51     insmod vga
52     insmod video_bochs
53     insmod video_cirrus
54   fi
55 }
56
57 if [ x$feature_default_font_path = xy ] ; then
58    font=unicode
59 else
60 insmod part_msdos
61 insmod ext2
62 set root='hd0,msdos1'
63 if [ x$feature_platform_search_hint = xy ]; then
64   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  29beca39-9181-4780-bbb2-ab5d4be59aaf
65 else
66   search --no-floppy --fs-uuid --set=root 29beca39-9181-4780-bbb2-ab5d4be59aaf
67 fi
68     font="/usr/share/grub/unicode.pf2"
69 fi
70
71 if loadfont $font ; then
72   set gfxmode=auto
73   load_video
74   insmod gfxterm
75   set locale_dir=$prefix/locale
76   set lang=en_US
77   insmod gettext
78 fi
79 terminal_output gfxterm
80 if [ "${recordfail}" = 1 ]; then
81   set timeout=-1
82 else
83   set timeout=10
84 fi
85 ### END /etc/grub.d/00_header ###
86
87 ### BEGIN /etc/grub.d/05_debian_theme ###
88 set menu_color_normal=white/black
89 set menu_color_highlight=black/light-gray
90 #set_background_image "images/tile.png";
91
92 set menu_color_normal=white/black
93 set menu_color_highlight=black/light-gray
94 if background_color 0,0,0; then
95   clear
96 fi
97 ### END /etc/grub.d/05_debian_theme ###
98
99 ### BEGIN /etc/grub.d/10_linux ###
100 function gfxmode {
101         set gfxpayload="${1}"
102         if [ "${1}" = "keep" ]; then
103                 set vt_handoff=vt.handoff=7
104         else
105                 set vt_handoff=
106         fi
107 }
108 if [ "${recordfail}" != 1 ]; then
109   if [ -e ${prefix}/gfxblacklist.txt ]; then
110     if hwmatch ${prefix}/gfxblacklist.txt 3; then
111       if [ ${match} = 0 ]; then
112         set linux_gfx_mode=keep
113       else
114         set linux_gfx_mode=text
115       fi
116     else
117       set linux_gfx_mode=text
118     fi
119   else
120     set linux_gfx_mode=keep
121   fi
122 else
123   set linux_gfx_mode=text
124 fi
125 export linux_gfx_mode
126 menuentry 'Kubuntu GNU/Linux' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-29beca39-9181-4780-bbb2-ab5d4be59aaf' {
127 recordfail
128         load_video
129         gfxmode $linux_gfx_mode
130         insmod gzio
131         insmod part_msdos
132         insmod ext2
133         set root='hd0,msdos1'
134         if [ x$feature_platform_search_hint = xy ]; then
135           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  29beca39-9181-4780-bbb2-ab5d4be59aaf
136         else
137           search --no-floppy --fs-uuid --set=root 29beca39-9181-4780-bbb2-ab5d4be59aaf
138         fi
139         linux   /boot/vmlinuz-3.8.0-19-generic root=UUID=29beca39-9181-4780-bbb2-ab5d4be59aaf ro   quiet splash $vt_handoff
140         initrd  /boot/initrd.img-3.8.0-19-generic
141 }
142 submenu 'Advanced options for Kubuntu GNU/Linux' $menuentry_id_option 'gnulinux-advanced-29beca39-9181-4780-bbb2-ab5d4be59aaf' {
143         menuentry 'Kubuntu GNU/Linux, with Linux 3.8.0-19-generic' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-advanced-29beca39-9181-4780-bbb2-ab5d4be59aaf' {
144         recordfail
145                 load_video
146                 gfxmode $linux_gfx_mode
147                 insmod gzio
148                 insmod part_msdos
149                 insmod ext2
150                 set root='hd0,msdos1'
151                 if [ x$feature_platform_search_hint = xy ]; then
152                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  29beca39-9181-4780-bbb2-ab5d4be59aaf
153                 else
154                   search --no-floppy --fs-uuid --set=root 29beca39-9181-4780-bbb2-ab5d4be59aaf
155                 fi
156                 echo    'Loading Linux 3.8.0-19-generic ...'
157                 linux   /boot/vmlinuz-3.8.0-19-generic root=UUID=29beca39-9181-4780-bbb2-ab5d4be59aaf ro   quiet splash $vt_handoff
158                 echo    'Loading initial ramdisk ...'
159                 initrd  /boot/initrd.img-3.8.0-19-generic
160         }
161         menuentry 'Kubuntu GNU/Linux, with Linux 3.8.0-19-generic (recovery mode)' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-recovery-29beca39-9181-4780-bbb2-ab5d4be59aaf' {
162         recordfail
163                 load_video
164                 insmod gzio
165                 insmod part_msdos
166                 insmod ext2
167                 set root='hd0,msdos1'
168                 if [ x$feature_platform_search_hint = xy ]; then
169                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  29beca39-9181-4780-bbb2-ab5d4be59aaf
170                 else
171                   search --no-floppy --fs-uuid --set=root 29beca39-9181-4780-bbb2-ab5d4be59aaf
172                 fi
173                 echo    'Loading Linux 3.8.0-19-generic ...'
174                 linux   /boot/vmlinuz-3.8.0-19-generic root=UUID=29beca39-9181-4780-bbb2-ab5d4be59aaf ro recovery nomodeset 
175                 echo    'Loading initial ramdisk ...'
176                 initrd  /boot/initrd.img-3.8.0-19-generic
177         }
178 }
179
180 ### END /etc/grub.d/10_linux ###
181
182 ### BEGIN /etc/grub.d/20_linux_xen ###
183
184 ### END /etc/grub.d/20_linux_xen ###
185
186 ### BEGIN /etc/grub.d/20_memtest86+ ###
187 menuentry "Memory test (memtest86+)" {
188         insmod part_msdos
189         insmod ext2
190         set root='hd0,msdos1'
191         if [ x$feature_platform_search_hint = xy ]; then
192           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  29beca39-9181-4780-bbb2-ab5d4be59aaf
193         else
194           search --no-floppy --fs-uuid --set=root 29beca39-9181-4780-bbb2-ab5d4be59aaf
195         fi
196         linux16 /boot/memtest86+.bin
197 }
198 menuentry "Memory test (memtest86+, serial console 115200)" {
199         insmod part_msdos
200         insmod ext2
201         set root='hd0,msdos1'
202         if [ x$feature_platform_search_hint = xy ]; then
203           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  29beca39-9181-4780-bbb2-ab5d4be59aaf
204         else
205           search --no-floppy --fs-uuid --set=root 29beca39-9181-4780-bbb2-ab5d4be59aaf
206         fi
207         linux16 /boot/memtest86+.bin console=ttyS0,115200n8
208 }
209 ### END /etc/grub.d/20_memtest86+ ###
210
211 ### BEGIN /etc/grub.d/30_os-prober ###
212 if [ "x${timeout}" != "x-1" ]; then
213   if keystatus; then
214     if keystatus --shift; then
215       set timeout=-1
216     else
217       set timeout=0
218     fi
219   else
220     if sleep --interruptible 3 ; then
221       set timeout=0
222     fi
223   fi
224 fi
225 ### END /etc/grub.d/30_os-prober ###
226
227 ### BEGIN /etc/grub.d/30_uefi-firmware ###
228 ### END /etc/grub.d/30_uefi-firmware ###
229
230 ### BEGIN /etc/grub.d/40_custom ###
231 # This file provides an easy way to add custom menu entries.  Simply type the
232 # menu entries you want to add after this comment.  Be careful not to change
233 # the 'exec tail' line above.
234 ### END /etc/grub.d/40_custom ###
235
236 ### BEGIN /etc/grub.d/41_custom ###
237 if [ -f  ${config_directory}/custom.cfg ]; then
238   source ${config_directory}/custom.cfg
239 elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
240   source $prefix/custom.cfg;
241 fi
242 ### END /etc/grub.d/41_custom ###