Annotation of /trunk/grubby/test/grub2.19
Parent Directory | Revision Log
Revision 3023 -
(hide annotations)
(download)
Tue Jun 27 14:40:47 2017 UTC (6 years, 11 months ago) by niro
File size: 3094 byte(s)
Tue Jun 27 14:40:47 2017 UTC (6 years, 11 months ago) by niro
File size: 3094 byte(s)
Add multi-entry removal test (#1285601)
1 | niro | 3023 | # |
2 | # DO NOT EDIT THIS FILE | ||
3 | # | ||
4 | # It is automatically generated by grub2-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 | load_env | ||
11 | fi | ||
12 | if [ "${next_entry}" ] ; then | ||
13 | set default="${next_entry}" | ||
14 | set next_entry= | ||
15 | save_env next_entry | ||
16 | set boot_once=true | ||
17 | else | ||
18 | set default="${saved_entry}" | ||
19 | fi | ||
20 | |||
21 | if [ x"${feature_menuentry_id}" = xy ]; then | ||
22 | menuentry_id_option="--id" | ||
23 | else | ||
24 | menuentry_id_option="" | ||
25 | fi | ||
26 | |||
27 | export menuentry_id_option | ||
28 | |||
29 | if [ "${prev_saved_entry}" ]; then | ||
30 | set saved_entry="${prev_saved_entry}" | ||
31 | save_env saved_entry | ||
32 | set prev_saved_entry= | ||
33 | save_env prev_saved_entry | ||
34 | set boot_once=true | ||
35 | fi | ||
36 | |||
37 | function savedefault { | ||
38 | if [ -z "${boot_once}" ]; then | ||
39 | saved_entry="${chosen}" | ||
40 | save_env saved_entry | ||
41 | fi | ||
42 | } | ||
43 | |||
44 | function load_video { | ||
45 | insmod vbe | ||
46 | insmod vga | ||
47 | insmod video_bochs | ||
48 | insmod video_cirrus | ||
49 | } | ||
50 | |||
51 | set timeout=5 | ||
52 | ### END /etc/grub.d/00_header ### | ||
53 | |||
54 | ### BEGIN /etc/grub.d/10_linux ### | ||
55 | menuentry 'First Title To Remove' --class gnu-linux --class gnu --class os { | ||
56 | load_video | ||
57 | set gfxpayload=keep | ||
58 | insmod part_msdos | ||
59 | insmod ext2 | ||
60 | set root='(hd0,msdos1)' | ||
61 | search --no-floppy --fs-uuid --set=root df0170c9-7d05-415c-bbd1-d4d503ba0eed | ||
62 | echo 'Loading Linux 2.6.38.2-9.fc15.x86_64 ...' | ||
63 | linux /vmlinuz-2.6.38.2-9.fc15.x86_64 root=/dev/mapper/vg_pjones5-lv_root ro quiet rhgb | ||
64 | echo 'Loading initial ramdisk ...' | ||
65 | initrd /initramfs-2.6.38.2-9.fc15.x86_64.img | ||
66 | } | ||
67 | menuentry 'Second Title To Remove' --class gnu-linux --class gnu --class os { | ||
68 | load_video | ||
69 | set gfxpayload=keep | ||
70 | insmod part_msdos | ||
71 | insmod ext2 | ||
72 | set root='(hd0,msdos1)' | ||
73 | search --no-floppy --fs-uuid --set=root df0170c9-7d05-415c-bbd1-d4d503ba0eed | ||
74 | echo 'Loading Linux 2.6.38.2-9.fc15.x86_64 ...' | ||
75 | linux /vmlinuz-2.6.38.2-9.fc15.x86_64 root=/dev/mapper/vg_pjones5-lv_root ro quiet rhgb | ||
76 | echo 'Loading initial ramdisk ...' | ||
77 | initrd /initramfs-2.6.38.2-9.fc15.x86_64.img | ||
78 | } | ||
79 | menuentry 'Linux, with Fedora 2.6.38.8-32.fc15.x86_64' --class gnu-linux --class gnu --class os { | ||
80 | load_video | ||
81 | set gfxpayload=keep | ||
82 | insmod part_msdos | ||
83 | insmod ext2 | ||
84 | set root='(hd0,msdos1)' | ||
85 | search --no-floppy --fs-uuid --set=root df0170c9-7d05-415c-bbd1-d4d503ba0eed | ||
86 | echo 'Loading Fedora 2.6.38.8-32.fc15.x86_64 ...' | ||
87 | linux /vmlinuz-2.6.38.8-32.fc15.x86_64 root=/dev/mapper/vg_pjones5-lv_root ro quiet rhgb | ||
88 | echo 'Loading initial ramdisk ...' | ||
89 | initrd /initramfs-2.6.38.8-32.fc15.x86_64.img | ||
90 | } | ||
91 | ### END /etc/grub.d/10_linux ### | ||
92 | |||
93 | ### BEGIN /etc/grub.d/20_linux_xen ### | ||
94 | ### END /etc/grub.d/20_linux_xen ### | ||
95 | |||
96 | ### BEGIN /etc/grub.d/30_os-prober ### | ||
97 | ### END /etc/grub.d/30_os-prober ### | ||
98 | |||
99 | ### BEGIN /etc/grub.d/40_custom ### | ||
100 | # This file provides an easy way to add custom menu entries. Simply type the | ||
101 | # menu entries you want to add after this comment. Be careful not to change | ||
102 | # the 'exec tail' line above. | ||
103 | ### END /etc/grub.d/40_custom ### | ||
104 | |||
105 | ### BEGIN /etc/grub.d/41_custom ### | ||
106 | if [ -f $prefix/custom.cfg ]; then | ||
107 | source $prefix/custom.cfg; | ||
108 | fi | ||
109 | ### END /etc/grub.d/41_custom ### | ||
110 | |||
111 | ### BEGIN /etc/grub.d/90_persistent ### | ||
112 | ### END /etc/grub.d/90_persistent ### |