Contents of /tags/grubby-8_19/test/grub2.3
Parent Directory | Revision Log
Revision 1801 -
(show annotations)
(download)
Mon Apr 16 17:48:10 2012 UTC (12 years, 5 months ago) by niro
Original Path: trunk/grubby/test/grub2.3
File size: 3082 byte(s)
Mon Apr 16 17:48:10 2012 UTC (12 years, 5 months ago) by niro
Original Path: trunk/grubby/test/grub2.3
File size: 3082 byte(s)
Make --remove-kenrel support titles in grub2 (and other fixes)
1 | # |
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 | set default="0" |
13 | if [ "${prev_saved_entry}" ]; then |
14 | set saved_entry="${prev_saved_entry}" |
15 | save_env saved_entry |
16 | set prev_saved_entry= |
17 | save_env prev_saved_entry |
18 | set boot_once=true |
19 | fi |
20 | |
21 | function savedefault { |
22 | if [ -z "${boot_once}" ]; then |
23 | saved_entry="${chosen}" |
24 | save_env saved_entry |
25 | fi |
26 | } |
27 | |
28 | function load_video { |
29 | insmod vbe |
30 | insmod vga |
31 | insmod video_bochs |
32 | insmod video_cirrus |
33 | } |
34 | |
35 | set timeout=5 |
36 | ### END /etc/grub.d/00_header ### |
37 | |
38 | ### BEGIN /etc/grub.d/10_linux ### |
39 | menuentry 'title' --class gnu-linux --class gnu --class os { |
40 | load_video |
41 | set gfxpayload=keep |
42 | insmod part_msdos |
43 | insmod ext2 |
44 | set root='(hd0,msdos1)' |
45 | search --no-floppy --fs-uuid --set=root df0170c9-7d05-415c-bbd1-d4d503ba0eed |
46 | echo 'Loading title' |
47 | linux /new-kernel.img root=/dev/mapper/vg_pjones5-lv_root ro quiet rhgb |
48 | echo 'Loading initial ramdisk ...' |
49 | } |
50 | menuentry 'title2' --class gnu-linux --class gnu --class os { |
51 | load_video |
52 | set gfxpayload=keep |
53 | insmod part_msdos |
54 | insmod ext2 |
55 | set root='(hd0,msdos1)' |
56 | search --no-floppy --fs-uuid --set=root df0170c9-7d05-415c-bbd1-d4d503ba0eed |
57 | echo 'Loading title' |
58 | linux /new-kernel.img root=/dev/mapper/vg_pjones5-lv_root ro quiet rhgb |
59 | echo 'Loading initial ramdisk ...' |
60 | } |
61 | menuentry 'Linux, with Linux 2.6.38.8-32.fc15.x86_64' --class gnu-linux --class gnu --class os { |
62 | load_video |
63 | set gfxpayload=keep |
64 | insmod part_msdos |
65 | insmod ext2 |
66 | set root='(hd0,msdos1)' |
67 | search --no-floppy --fs-uuid --set=root df0170c9-7d05-415c-bbd1-d4d503ba0eed |
68 | echo 'Loading Linux 2.6.38.8-32.fc15.x86_64 ...' |
69 | linux /vmlinuz-2.6.38.8-32.fc15.x86_64 root=/dev/mapper/vg_pjones5-lv_root ro quiet rhgb |
70 | echo 'Loading initial ramdisk ...' |
71 | initrd /initramfs-2.6.38.8-32.fc15.x86_64.img |
72 | } |
73 | menuentry 'Linux, with Linux 2.6.38.2-9.fc15.x86_64' --class gnu-linux --class gnu --class os { |
74 | load_video |
75 | set gfxpayload=keep |
76 | insmod part_msdos |
77 | insmod ext2 |
78 | set root='(hd0,msdos1)' |
79 | search --no-floppy --fs-uuid --set=root df0170c9-7d05-415c-bbd1-d4d503ba0eed |
80 | echo 'Loading Linux 2.6.38.2-9.fc15.x86_64 ...' |
81 | linux /vmlinuz-2.6.38.2-9.fc15.x86_64 root=/dev/mapper/vg_pjones5-lv_root ro quiet rhgb |
82 | echo 'Loading initial ramdisk ...' |
83 | initrd /initramfs-2.6.38.2-9.fc15.x86_64.img |
84 | } |
85 | ### END /etc/grub.d/10_linux ### |
86 | |
87 | ### BEGIN /etc/grub.d/20_linux_xen ### |
88 | ### END /etc/grub.d/20_linux_xen ### |
89 | |
90 | ### BEGIN /etc/grub.d/30_os-prober ### |
91 | ### END /etc/grub.d/30_os-prober ### |
92 | |
93 | ### BEGIN /etc/grub.d/40_custom ### |
94 | # This file provides an easy way to add custom menu entries. Simply type the |
95 | # menu entries you want to add after this comment. Be careful not to change |
96 | # the 'exec tail' line above. |
97 | ### END /etc/grub.d/40_custom ### |
98 | |
99 | ### BEGIN /etc/grub.d/41_custom ### |
100 | if [ -f $prefix/custom.cfg ]; then |
101 | source $prefix/custom.cfg; |
102 | fi |
103 | ### END /etc/grub.d/41_custom ### |
104 | |
105 | ### BEGIN /etc/grub.d/90_persistent ### |
106 | ### END /etc/grub.d/90_persistent ### |