Advertisement
Guest User

Untitled

a guest
Oct 17th, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.88 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. if [ -s $prefix/grubenv ]; then
  10. load_env
  11. fi
  12. if [ "${next_entry}" ] ; then
  13. set default="${next_entry}"
  14. set next_entry=
  15. save_env next_entry
  16. set boot_once=true
  17. else
  18. set default="${saved_entry}"
  19. fi
  20.  
  21. if [ x"${feature_menuentry_id}" = xy ]; then
  22. menuentry_id_option="--id"
  23. else
  24. menuentry_id_option=""
  25. fi
  26.  
  27. export menuentry_id_option
  28.  
  29. if [ "${prev_saved_entry}" ]; then
  30. set saved_entry="${prev_saved_entry}"
  31. save_env saved_entry
  32. set prev_saved_entry=
  33. save_env prev_saved_entry
  34. set boot_once=true
  35. fi
  36.  
  37. function savedefault {
  38. if [ -z "${boot_once}" ]; then
  39. saved_entry="${chosen}"
  40. save_env saved_entry
  41. fi
  42. }
  43.  
  44. function load_video {
  45. if [ x$feature_all_video_module = xy ]; then
  46. insmod all_video
  47. else
  48. insmod efi_gop
  49. insmod efi_uga
  50. insmod ieee1275_fb
  51. insmod vbe
  52. insmod vga
  53. insmod video_bochs
  54. insmod video_cirrus
  55. fi
  56. }
  57.  
  58. if [ x$feature_default_font_path = xy ] ; then
  59. font=unicode
  60. else
  61. insmod part_gpt
  62. insmod ext2
  63. set root='hd0,gpt4'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 448474d0-f56f-43de-a7c4-23fd91bb4643
  66. else
  67. search --no-floppy --fs-uuid --set=root 448474d0-f56f-43de-a7c4-23fd91bb4643
  68. fi
  69. font="/usr/share/grub/unicode.pf2"
  70. fi
  71.  
  72. if loadfont $font ; then
  73. set gfxmode=auto
  74. load_video
  75. insmod gfxterm
  76. set locale_dir=$prefix/locale
  77. set lang=en_US
  78. insmod gettext
  79. fi
  80. terminal_output gfxterm
  81. insmod part_gpt
  82. insmod ext2
  83. set root='hd0,gpt2'
  84. if [ x$feature_platform_search_hint = xy ]; then
  85. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ce899172-904f-4f89-9533-0f427df76a72
  86. else
  87. search --no-floppy --fs-uuid --set=root ce899172-904f-4f89-9533-0f427df76a72
  88. fi
  89. insmod gfxmenu
  90. loadfont ($root)/grub/themes/starfield/dejavu_10.pf2
  91. loadfont ($root)/grub/themes/starfield/dejavu_12.pf2
  92. loadfont ($root)/grub/themes/starfield/dejavu_14.pf2
  93. loadfont ($root)/grub/themes/starfield/dejavu_16.pf2
  94. loadfont ($root)/grub/themes/starfield/dejavu_bold_14.pf2
  95. insmod png
  96. set theme=($root)/grub/themes/starfield/theme.txt
  97. export theme
  98. if [ x$feature_timeout_style = xy ] ; then
  99. set timeout_style=menu
  100. set timeout=10
  101. # Fallback normal timeout code in case the timeout_style feature is
  102. # unavailable.
  103. else
  104. set timeout=10
  105. fi
  106. ### END /etc/grub.d/00_header ###
  107.  
  108. ### BEGIN /etc/grub.d/10_linux ###
  109. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-448474d0-f56f-43de-a7c4-23fd91bb4643' {
  110. savedefault
  111. load_video
  112. insmod gzio
  113. insmod part_gpt
  114. insmod ext2
  115. set root='hd0,gpt2'
  116. if [ x$feature_platform_search_hint = xy ]; then
  117. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ce899172-904f-4f89-9533-0f427df76a72
  118. else
  119. search --no-floppy --fs-uuid --set=root ce899172-904f-4f89-9533-0f427df76a72
  120. fi
  121. echo 'Loading Linux 4.0.5-gentoo ...'
  122. linux /vmlinuz-4.0.5-gentoo root=UUID=448474d0-f56f-43de-a7c4-23fd91bb4643 ro
  123. echo 'Loading initial ramdisk ...'
  124. initrd /initramfs-genkernel-x86_64-4.0.5-gentoo
  125. }
  126. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-448474d0-f56f-43de-a7c4-23fd91bb4643' {
  127. menuentry 'Gentoo GNU/Linux, with Linux 4.0.5-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.5-gentoo-advanced-448474d0-f56f-43de-a7c4-23fd91bb4643' {
  128. savedefault
  129. load_video
  130. insmod gzio
  131. insmod part_gpt
  132. insmod ext2
  133. set root='hd0,gpt2'
  134. if [ x$feature_platform_search_hint = xy ]; then
  135. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ce899172-904f-4f89-9533-0f427df76a72
  136. else
  137. search --no-floppy --fs-uuid --set=root ce899172-904f-4f89-9533-0f427df76a72
  138. fi
  139. echo 'Loading Linux 4.0.5-gentoo ...'
  140. linux /vmlinuz-4.0.5-gentoo root=UUID=448474d0-f56f-43de-a7c4-23fd91bb4643 ro
  141. echo 'Loading initial ramdisk ...'
  142. initrd /initramfs-genkernel-x86_64-4.0.5-gentoo
  143. }
  144. menuentry 'Gentoo GNU/Linux, with Linux 4.0.5-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.5-gentoo-recovery-448474d0-f56f-43de-a7c4-23fd91bb4643' {
  145. load_video
  146. insmod gzio
  147. insmod part_gpt
  148. insmod ext2
  149. set root='hd0,gpt2'
  150. if [ x$feature_platform_search_hint = xy ]; then
  151. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ce899172-904f-4f89-9533-0f427df76a72
  152. else
  153. search --no-floppy --fs-uuid --set=root ce899172-904f-4f89-9533-0f427df76a72
  154. fi
  155. echo 'Loading Linux 4.0.5-gentoo ...'
  156. linux /vmlinuz-4.0.5-gentoo root=UUID=448474d0-f56f-43de-a7c4-23fd91bb4643 ro single
  157. echo 'Loading initial ramdisk ...'
  158. initrd /initramfs-genkernel-x86_64-4.0.5-gentoo
  159. }
  160. }
  161.  
  162. ### END /etc/grub.d/10_linux ###
  163.  
  164. ### BEGIN /etc/grub.d/20_linux_xen ###
  165. ### END /etc/grub.d/20_linux_xen ###
  166.  
  167. ### BEGIN /etc/grub.d/30_os-prober ###
  168. ### END /etc/grub.d/30_os-prober ###
  169.  
  170. ### BEGIN /etc/grub.d/40_custom ###
  171. # This file provides an easy way to add custom menu entries. Simply type the
  172. # menu entries you want to add after this comment. Be careful not to change
  173. # the 'exec tail' line above.
  174. ### END /etc/grub.d/40_custom ###
  175.  
  176. ### BEGIN /etc/grub.d/41_custom ###
  177. if [ -f ${config_directory}/custom.cfg ]; then
  178. source ${config_directory}/custom.cfg
  179. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  180. source $prefix/custom.cfg;
  181. fi
  182. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement