Advertisement
Guest User

Untitled

a guest
Jun 24th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.29 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="0"
  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,gpt5'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 8bde7202-f505-4218-899e-9ef0e7ec9656
  66. else
  67. search --no-floppy --fs-uuid --set=root 8bde7202-f505-4218-899e-9ef0e7ec9656
  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. if [ x$feature_timeout_style = xy ] ; then
  82. set timeout_style=menu
  83. set timeout=5
  84. # Fallback normal timeout code in case the timeout_style feature is
  85. # unavailable.
  86. else
  87. set timeout=5
  88. fi
  89. ### END /etc/grub.d/00_header ###
  90.  
  91. ### BEGIN /etc/grub.d/10_linux ###
  92. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8bde7202-f505-4218-899e-9ef0e7ec9656' {
  93. load_video
  94. if [ "x$grub_platform" = xefi ]; then
  95. set gfxpayload=keep
  96. fi
  97. insmod gzio
  98. insmod part_gpt
  99. insmod ext2
  100. set root='hd0,gpt5'
  101. if [ x$feature_platform_search_hint = xy ]; then
  102. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 8bde7202-f505-4218-899e-9ef0e7ec9656
  103. else
  104. search --no-floppy --fs-uuid --set=root 8bde7202-f505-4218-899e-9ef0e7ec9656
  105. fi
  106. echo 'Loading Linux 4.0.5-gentoo ...'
  107. linux /boot/vmlinuz-4.0.5-gentoo root=/dev/sda5 ro
  108. }
  109. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8bde7202-f505-4218-899e-9ef0e7ec9656' {
  110. 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-8bde7202-f505-4218-899e-9ef0e7ec9656' {
  111. load_video
  112. if [ "x$grub_platform" = xefi ]; then
  113. set gfxpayload=keep
  114. fi
  115. insmod gzio
  116. insmod part_gpt
  117. insmod ext2
  118. set root='hd0,gpt5'
  119. if [ x$feature_platform_search_hint = xy ]; then
  120. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 8bde7202-f505-4218-899e-9ef0e7ec9656
  121. else
  122. search --no-floppy --fs-uuid --set=root 8bde7202-f505-4218-899e-9ef0e7ec9656
  123. fi
  124. echo 'Loading Linux 4.0.5-gentoo ...'
  125. linux /boot/vmlinuz-4.0.5-gentoo root=/dev/sda5 ro
  126. }
  127. 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-8bde7202-f505-4218-899e-9ef0e7ec9656' {
  128. load_video
  129. if [ "x$grub_platform" = xefi ]; then
  130. set gfxpayload=keep
  131. fi
  132. insmod gzio
  133. insmod part_gpt
  134. insmod ext2
  135. set root='hd0,gpt5'
  136. if [ x$feature_platform_search_hint = xy ]; then
  137. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 8bde7202-f505-4218-899e-9ef0e7ec9656
  138. else
  139. search --no-floppy --fs-uuid --set=root 8bde7202-f505-4218-899e-9ef0e7ec9656
  140. fi
  141. echo 'Loading Linux 4.0.5-gentoo ...'
  142. linux /boot/vmlinuz-4.0.5-gentoo root=/dev/sda5 ro single
  143. }
  144. }
  145.  
  146. ### END /etc/grub.d/10_linux ###
  147.  
  148. ### BEGIN /etc/grub.d/20_linux_xen ###
  149. ### END /etc/grub.d/20_linux_xen ###
  150.  
  151. ### BEGIN /etc/grub.d/30_os-prober ###
  152. menuentry 'Gentoo Base System release 2.2 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-c30bceb7-233e-4d12-a4a6-f7c192727e98' {
  153. insmod part_msdos
  154. insmod ext2
  155. set root='hd1,msdos1'
  156. if [ x$feature_platform_search_hint = xy ]; then
  157. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  158. else
  159. search --no-floppy --fs-uuid --set=root 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  160. fi
  161. linux /boot/kernel-3.16.5-gentoo root=/dev/sdb2
  162. }
  163. submenu 'Advanced options for Gentoo Base System release 2.2 (on /dev/sdb2)' $menuentry_id_option 'osprober-gnulinux-advanced-c30bceb7-233e-4d12-a4a6-f7c192727e98' {
  164. menuentry 'Gentoo Linux 3.16.5 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.16.5-gentoo--c30bceb7-233e-4d12-a4a6-f7c192727e98' {
  165. insmod part_msdos
  166. insmod ext2
  167. set root='hd1,msdos1'
  168. if [ x$feature_platform_search_hint = xy ]; then
  169. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  170. else
  171. search --no-floppy --fs-uuid --set=root 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  172. fi
  173. linux /boot/kernel-3.16.5-gentoo root=/dev/sdb2
  174. }
  175. menuentry 'Gentoo Linux 3.14.14 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.14.14-gentoo--c30bceb7-233e-4d12-a4a6-f7c192727e98' {
  176. insmod part_msdos
  177. insmod ext2
  178. set root='hd1,msdos1'
  179. if [ x$feature_platform_search_hint = xy ]; then
  180. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  181. else
  182. search --no-floppy --fs-uuid --set=root 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  183. fi
  184. linux /boot/kernel-3.14.14-gentoo root=/dev/sdb2
  185. }
  186. menuentry 'Gentoo Linux 3.10.7-2 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.10.7-gentoo-2--c30bceb7-233e-4d12-a4a6-f7c192727e98' {
  187. insmod part_msdos
  188. insmod ext2
  189. set root='hd1,msdos1'
  190. if [ x$feature_platform_search_hint = xy ]; then
  191. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  192. else
  193. search --no-floppy --fs-uuid --set=root 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  194. fi
  195. linux /boot/kernel-3.10.7-gentoo-2 root=/dev/sdb2
  196. }
  197. menuentry 'Gentoo Linux 3.10.7 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.10.7-gentoo--c30bceb7-233e-4d12-a4a6-f7c192727e98' {
  198. insmod part_msdos
  199. insmod ext2
  200. set root='hd1,msdos1'
  201. if [ x$feature_platform_search_hint = xy ]; then
  202. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  203. else
  204. search --no-floppy --fs-uuid --set=root 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  205. fi
  206. linux /boot/kernel-3.10.7-gentoo root=/dev/sdb2
  207. }
  208. menuentry 'Gentoo Linux 3.8.13 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.8.13-gentoo--c30bceb7-233e-4d12-a4a6-f7c192727e98' {
  209. insmod part_msdos
  210. insmod ext2
  211. set root='hd1,msdos1'
  212. if [ x$feature_platform_search_hint = xy ]; then
  213. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  214. else
  215. search --no-floppy --fs-uuid --set=root 7e73ddfe-4fbc-4ef7-9223-d9b3bc661192
  216. fi
  217. linux /boot/kernel-3.8.13-gentoo root=/dev/sdb2
  218. }
  219. }
  220.  
  221. menuentry 'Windows Vista (loader) (on /dev/sdb4)' --class windows --class os $menuentry_id_option 'osprober-chain-BE9A582C9A57E007' {
  222. insmod part_msdos
  223. insmod ntfs
  224. set root='hd1,msdos4'
  225. if [ x$feature_platform_search_hint = xy ]; then
  226. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos4 --hint-efi=hd1,msdos4 --hint-baremetal=ahci1,msdos4 BE9A582C9A57E007
  227. else
  228. search --no-floppy --fs-uuid --set=root BE9A582C9A57E007
  229. fi
  230. parttool ${root} hidden-
  231. chainloader +1
  232. }
  233. ### END /etc/grub.d/30_os-prober ###
  234.  
  235. ### BEGIN /etc/grub.d/40_custom ###
  236. # This file provides an easy way to add custom menu entries. Simply type the
  237. # menu entries you want to add after this comment. Be careful not to change
  238. # the 'exec tail' line above.
  239. ### END /etc/grub.d/40_custom ###
  240.  
  241. ### BEGIN /etc/grub.d/41_custom ###
  242. if [ -f ${config_directory}/custom.cfg ]; then
  243. source ${config_directory}/custom.cfg
  244. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  245. source $prefix/custom.cfg;
  246. fi
  247. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement