Advertisement
Guest User

grub.cfg

a guest
Mar 30th, 2015
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.50 KB | None | 0 0
  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. set pager=1
  10.  
  11. if [ -s $prefix/grubenv ]; then
  12.   load_env
  13. fi
  14. if [ "${next_entry}" ] ; then
  15.    set default="${next_entry}"
  16.    set next_entry=
  17.    save_env next_entry
  18.    set boot_once=true
  19. else
  20.    set default="${saved_entry}"
  21. fi
  22.  
  23. if [ x"${feature_menuentry_id}" = xy ]; then
  24.   menuentry_id_option="--id"
  25. else
  26.   menuentry_id_option=""
  27. fi
  28.  
  29. export menuentry_id_option
  30.  
  31. if [ "${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
  37. fi
  38.  
  39. function savedefault {
  40.   if [ -z "${boot_once}" ]; then
  41.     saved_entry="${chosen}"
  42.     save_env saved_entry
  43.   fi
  44. }
  45.  
  46. function 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.  
  60. terminal_output console
  61. if [ 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.
  66. else
  67.   set timeout=5
  68. fi
  69. ### END /etc/grub.d/00_header ###
  70.  
  71. ### BEGIN /etc/grub.d/10_linux ###
  72. menuentry 'Fedora, with Linux 3.18.8-201.fc21.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.18.8-201.fc21.x86_64-advanced-420db20c-e444-4151-8aa6-87efa345d4ea' {
  73.     load_video
  74.     set gfxpayload=keep
  75.     insmod gzio
  76.     insmod part_msdos
  77.     insmod ext2
  78.     set root='hd0,msdos3'
  79.     if [ x$feature_platform_search_hint = xy ]; then
  80.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  420db20c-e444-4151-8aa6-87efa345d4ea
  81.     else
  82.       search --no-floppy --fs-uuid --set=root 420db20c-e444-4151-8aa6-87efa345d4ea
  83.     fi
  84.     linux16 /boot/vmlinuz-3.18.8-201.fc21.x86_64 root=UUID=420db20c-e444-4151-8aa6-87efa345d4ea ro rhgb quiet
  85.     initrd16 /boot/initramfs-3.18.8-201.fc21.x86_64.img
  86. }
  87. menuentry 'Fedora, with Linux 3.18.7-200.fc21.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.18.7-200.fc21.x86_64-advanced-420db20c-e444-4151-8aa6-87efa345d4ea' {
  88.     load_video
  89.     set gfxpayload=keep
  90.     insmod gzio
  91.     insmod part_msdos
  92.     insmod ext2
  93.     set root='hd0,msdos3'
  94.     if [ x$feature_platform_search_hint = xy ]; then
  95.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  420db20c-e444-4151-8aa6-87efa345d4ea
  96.     else
  97.       search --no-floppy --fs-uuid --set=root 420db20c-e444-4151-8aa6-87efa345d4ea
  98.     fi
  99.     linux16 /boot/vmlinuz-3.18.7-200.fc21.x86_64 root=UUID=420db20c-e444-4151-8aa6-87efa345d4ea ro rhgb quiet
  100.     initrd16 /boot/initramfs-3.18.7-200.fc21.x86_64.img
  101. }
  102. menuentry 'Fedora, with Linux 3.18.6-200.fc21.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.18.6-200.fc21.x86_64-advanced-420db20c-e444-4151-8aa6-87efa345d4ea' {
  103.     load_video
  104.     set gfxpayload=keep
  105.     insmod gzio
  106.     insmod part_msdos
  107.     insmod ext2
  108.     set root='hd0,msdos3'
  109.     if [ x$feature_platform_search_hint = xy ]; then
  110.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  420db20c-e444-4151-8aa6-87efa345d4ea
  111.     else
  112.       search --no-floppy --fs-uuid --set=root 420db20c-e444-4151-8aa6-87efa345d4ea
  113.     fi
  114.     linux16 /boot/vmlinuz-3.18.6-200.fc21.x86_64 root=UUID=420db20c-e444-4151-8aa6-87efa345d4ea ro rhgb quiet
  115.     initrd16 /boot/initramfs-3.18.6-200.fc21.x86_64.img
  116. }
  117. menuentry 'Fedora, with Linux 0-rescue-da89e25561cb422b9cb49e66ec36775f' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-da89e25561cb422b9cb49e66ec36775f-advanced-420db20c-e444-4151-8aa6-87efa345d4ea' {
  118.     load_video
  119.     insmod gzio
  120.     insmod part_msdos
  121.     insmod ext2
  122.     set root='hd0,msdos3'
  123.     if [ x$feature_platform_search_hint = xy ]; then
  124.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  420db20c-e444-4151-8aa6-87efa345d4ea
  125.     else
  126.       search --no-floppy --fs-uuid --set=root 420db20c-e444-4151-8aa6-87efa345d4ea
  127.     fi
  128.     linux16 /boot/vmlinuz-0-rescue-da89e25561cb422b9cb49e66ec36775f root=UUID=420db20c-e444-4151-8aa6-87efa345d4ea ro rhgb quiet
  129.     initrd16 /boot/initramfs-0-rescue-da89e25561cb422b9cb49e66ec36775f.img
  130. }
  131.  
  132. ### END /etc/grub.d/10_linux ###
  133.  
  134. ### BEGIN /etc/grub.d/20_linux_xen ###
  135.  
  136. ### END /etc/grub.d/20_linux_xen ###
  137.  
  138. ### BEGIN /etc/grub.d/20_ppc_terminfo ###
  139. ### END /etc/grub.d/20_ppc_terminfo ###
  140.  
  141. ### BEGIN /etc/grub.d/30_os-prober ###
  142. menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-C280DCEF80DCEAC5' {
  143.     insmod part_msdos
  144.     insmod ntfs
  145.     set root='hd0,msdos1'
  146.     if [ x$feature_platform_search_hint = xy ]; then
  147.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  C280DCEF80DCEAC5
  148.     else
  149.       search --no-floppy --fs-uuid --set=root C280DCEF80DCEAC5
  150.     fi
  151.     parttool ${root} hidden-
  152.     chainloader +1
  153. }
  154. menuentry 'Windows 8 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-24E4580BE457DD9C' {
  155.     insmod part_msdos
  156.     insmod ntfs
  157.     set root='hd0,msdos2'
  158.     if [ x$feature_platform_search_hint = xy ]; then
  159.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2'  24E4580BE457DD9C
  160.     else
  161.       search --no-floppy --fs-uuid --set=root 24E4580BE457DD9C
  162.     fi
  163.     parttool ${root} hidden-
  164.     drivemap -s (hd0) ${root}
  165.     chainloader +1
  166. }
  167. ### END /etc/grub.d/30_os-prober ###
  168.  
  169. ### BEGIN /etc/grub.d/40_custom ###
  170. # This file provides an easy way to add custom menu entries.  Simply type the
  171. # menu entries you want to add after this comment.  Be careful not to change
  172. # the 'exec tail' line above.
  173. ### END /etc/grub.d/40_custom ###
  174.  
  175. ### BEGIN /etc/grub.d/41_custom ###
  176. if [ -f  ${config_directory}/custom.cfg ]; then
  177.   source ${config_directory}/custom.cfg
  178. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  179.   source $prefix/custom.cfg;
  180. fi
  181. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement