Advertisement
fmartinelli

PXE_UEFI_grub.cfg

Oct 15th, 2015
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.58 KB | None | 0 0
  1. # cat /opt/tftpboot/grub.cfg
  2. set default="0"
  3.  
  4. function load_video {
  5.   insmod efi_gop
  6.   insmod efi_uga
  7.   insmod video_bochs
  8.   insmod video_cirrus
  9.   insmod all_video
  10. }
  11.  
  12. load_video
  13. set gfxpayload=keep
  14. insmod gzio
  15. insmod part_gpt
  16. insmod ext2
  17.  
  18. set timeout=10
  19.  
  20.  
  21. ### END /etc/grub.d/00_header ###
  22.  
  23. search --no-floppy --set=root -l 'CentOS 7 x86_64'
  24.  
  25. ### BEGIN /etc/grub.d/10_linux ###
  26. menuentry 'Install CentOS 7' --class fedora --class gnu-linux --class gnu --class os {
  27.     linuxefi /scientific/71/x86_64/vmlinuz inst.cmdline console=ttyS1 sshd inst.loglevel=debug inst.syslog=mycentrallog.mycompany.ch:1514 inst.ksdevice=link inst.ks=http://mywebserver.mycompany.ch/kickstart/configs/centos71-t3.ks inst.gpt inst.selinux=0 ipv6.disable
  28.     initrdefi /scientific/71/x86_64/initrd.img
  29. }
  30. menuentry 'Test this media & install CentOS 7' --class fedora --class gnu-linux --class gnu --class os {
  31.     linuxefi /scientific/71/x86_64/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rd.live.check quiet
  32.     initrdefi /scientific/71/x86_64/initrd.img
  33. }
  34. submenu 'Troubleshooting -->' {
  35.     menuentry 'Install CentOS 7 in basic graphics mode' --class fedora --class gnu-linux --class gnu --class os {
  36.         linuxefi /scientific/71/x86_64/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 xdriver=vesa nomodeset quiet
  37.         initrdefi /scientific/71/x86_64/initrd.img
  38.     }
  39.     menuentry 'Rescue a CentOS system' --class fedora --class gnu-linux --class gnu --class os {
  40.         linuxefi /scientific/71/x86_64/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rescue quiet
  41.         initrdefi /scientific/71/x86_64/initrd.img
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement