Ticket #849: grub.cfg

File grub.cfg, 4.7 KB (added by kevenw, 5 years ago)
Line 
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 ###
9set pager=1
10
11if [ -s $prefix/grubenv ]; then
12 load_env
13fi
14if [ "${next_entry}" ] ; then
15 set default="${next_entry}"
16 set next_entry=
17 save_env next_entry
18 set boot_once=true
19else
20 set default="${saved_entry}"
21fi
22
23if [ x"${feature_menuentry_id}" = xy ]; then
24 menuentry_id_option="--id"
25else
26 menuentry_id_option=""
27fi
28
29export menuentry_id_option
30
31if [ "${prev_saved_entry}" ]; then
32 set saved_entry="${prev_saved_entry}"
33 save_env saved_entry
34 set prev_saved_entry=
35 save_env prev_saved_entry
36 set boot_once=true
37fi
38
39function savedefault {
40 if [ -z "${boot_once}" ]; then
41 saved_entry="${chosen}"
42 save_env saved_entry
43 fi
44}
45
46function load_video {
47 if [ x$feature_all_video_module = xy ]; then
48 insmod all_video
49 else
50 insmod efi_gop
51 insmod efi_uga
52 insmod ieee1275_fb
53 insmod vbe
54 insmod vga
55 insmod video_bochs
56 insmod video_cirrus
57 fi
58}
59
60terminal_output console
61if [ x$feature_timeout_style = xy ] ; then
62 set timeout_style=menu
63 set timeout=5
64# Fallback normal timeout code in case the timeout_style feature is
65# unavailable.
66else
67 set timeout=5
68fi
69### END /etc/grub.d/00_header ###
70
71### BEGIN /etc/grub.d/00_tuned ###
72set tuned_params=""
73set tuned_initrd=""
74### END /etc/grub.d/00_tuned ###
75
76### BEGIN /etc/grub.d/01_users ###
77if [ -f ${prefix}/user.cfg ]; then
78 source ${prefix}/user.cfg
79 if [ -n "${GRUB2_PASSWORD}" ]; then
80 set superusers="root"
81 export superusers
82 password_pbkdf2 root ${GRUB2_PASSWORD}
83 fi
84fi
85### END /etc/grub.d/01_users ###
86
87### BEGIN /etc/grub.d/10_linux ###
88menuentry 'Red Hat Enterprise Linux Server (3.10.0-1062.1.2.el7.x86_64) 7.7 (Maipo)' --class red --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-1062.1.2.el7.x86_64-advanced-78d7e55a-aae1-4cd2-bc9d-41b0de298961' {
89 load_video
90 set gfxpayload=keep
91 insmod gzio
92 insmod part_msdos
93 insmod xfs
94 set root='hd0,msdos1'
95 if [ x$feature_platform_search_hint = xy ]; then
96 search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' a20c8580-e3fd-416f-bfff-9cc264180fb8
97 else
98 search --no-floppy --fs-uuid --set=root a20c8580-e3fd-416f-bfff-9cc264180fb8
99 fi
100 linux16 /vmlinuz-3.10.0-1062.1.2.el7.x86_64 root=/dev/mapper/vg00-lvol0 ro console=tty0 console=ttyS0 splash=silent showopts intel_iommu=on iommu=pt console=tty0 console=ttyS0,115200n8 nmi_watchdog=0 kvm-intel.nested=1 kvm-intel=enable_shadow_vmcs=1 crashkernel=auto rd.lvm.lv=vg00/lvol0 biosdevname=0 net.ifnames=0 rhgb quiet rd.shell=0 audit=1 ipv6.disable=1
101 initrd16 /initramfs-3.10.0-1062.1.2.el7.x86_64.img
102}
103menuentry 'Red Hat Enterprise Linux Server (0-rescue-1221828a451a4fb5b04a5fefd2d7d71d) 7.7 (Maipo)' --class red --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-1221828a451a4fb5b04a5fefd2d7d71d-advanced-78d7e55a-aae1-4cd2-bc9d-41b0de298961' {
104 load_video
105 insmod gzio
106 insmod part_msdos
107 insmod xfs
108 set root='hd0,msdos1'
109 if [ x$feature_platform_search_hint = xy ]; then
110 search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' a20c8580-e3fd-416f-bfff-9cc264180fb8
111 else
112 search --no-floppy --fs-uuid --set=root a20c8580-e3fd-416f-bfff-9cc264180fb8
113 fi
114 linux16 /vmlinuz-0-rescue-1221828a451a4fb5b04a5fefd2d7d71d root=/dev/mapper/vg00-lvol0 ro console=tty0 console=ttyS0 splash=silent showopts intel_iommu=on iommu=pt console=tty0 console=ttyS0,115200n8 nmi_watchdog=0 kvm-intel.nested=1 kvm-intel=enable_shadow_vmcs=1 crashkernel=auto rd.lvm.lv=vg00/lvol0 biosdevname=0 net.ifnames=0 rhgb quiet rd.shell=0 audit=1 ipv6.disable=1
115 initrd16 /initramfs-0-rescue-1221828a451a4fb5b04a5fefd2d7d71d.img
116}
117if [ "x$default" = 'Red Hat Enterprise Linux Server (3.10.0-1062.1.2.el7.x86_64) 7.7 (Maipo)' ]; then default='Advanced options for Red Hat Enterprise Linux Server>Red Hat Enterprise Linux Server (3.10.0-1062.1.2.el7.x86_64) 7.7 (Maipo)'; fi;
118### END /etc/grub.d/10_linux ###
119
120### BEGIN /etc/grub.d/20_linux_xen ###
121### END /etc/grub.d/20_linux_xen ###
122
123### BEGIN /etc/grub.d/20_ppc_terminfo ###
124### END /etc/grub.d/20_ppc_terminfo ###
125
126### BEGIN /etc/grub.d/30_os-prober ###
127### END /etc/grub.d/30_os-prober ###
128
129### BEGIN /etc/grub.d/40_custom ###
130# This file provides an easy way to add custom menu entries. Simply type the
131# menu entries you want to add after this comment. Be careful not to change
132# the 'exec tail' line above.
133### END /etc/grub.d/40_custom ###
134
135### BEGIN /etc/grub.d/41_custom ###
136if [ -f ${config_directory}/custom.cfg ]; then
137 source ${config_directory}/custom.cfg
138elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
139 source $prefix/custom.cfg;
140fi
141### END /etc/grub.d/41_custom ###