1 |
jpp |
1.1 |
set default="1" |
2 |
|
|
|
3 |
|
|
function load_video { |
4 |
|
|
insmod efi_gop |
5 |
|
|
insmod efi_uga |
6 |
|
|
insmod video_bochs |
7 |
|
|
insmod video_cirrus |
8 |
|
|
insmod all_video |
9 |
|
|
} |
10 |
|
|
|
11 |
|
|
load_video |
12 |
|
|
set gfxpayload=keep |
13 |
|
|
insmod gzio |
14 |
|
|
insmod part_gpt |
15 |
|
|
insmod ext2 |
16 |
|
|
|
17 |
|
|
set timeout=60 |
18 |
|
|
### END /etc/grub.d/00_header ### |
19 |
|
|
|
20 |
|
|
search --no-floppy --set=root -l 'CentOS 7 x86_64' |
21 |
|
|
|
22 |
|
|
### BEGIN /etc/grub.d/10_linux ### |
23 |
|
|
menuentry 'Install CentOS 7' --class fedora --class gnu-linux --class gnu --class os { |
24 |
|
|
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 quiet |
25 |
|
|
initrdefi /images/pxeboot/initrd.img |
26 |
|
|
} |
27 |
|
|
menuentry 'Test this media & install CentOS 7' --class fedora --class gnu-linux --class gnu --class os { |
28 |
|
|
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rd.live.check quiet |
29 |
|
|
initrdefi /images/pxeboot/initrd.img |
30 |
|
|
} |
31 |
|
|
submenu 'Troubleshooting -->' { |
32 |
|
|
menuentry 'Install CentOS 7 in basic graphics mode' --class fedora --class gnu-linux --class gnu --class os { |
33 |
|
|
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 xdriver=vesa nomodeset quiet |
34 |
|
|
initrdefi /images/pxeboot/initrd.img |
35 |
|
|
} |
36 |
|
|
menuentry 'Rescue a CentOS system' --class fedora --class gnu-linux --class gnu --class os { |
37 |
|
|
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rescue quiet |
38 |
|
|
initrdefi /images/pxeboot/initrd.img |
39 |
|
|
} |
40 |
|
|
} |