Advertisement
MasterRoot24

gentoo-grub.cfg

Apr 19th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 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_msdos
  62. insmod ext2
  63. set root='hd0,msdos1'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  66. else
  67. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  68. fi
  69. font="/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_GB
  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-/dev/mapper/joe--pc--vg-root--gentoo' {
  93. load_video
  94. insmod gzio
  95. insmod part_msdos
  96. insmod ext2
  97. set root='hd0,msdos1'
  98. if [ x$feature_platform_search_hint = xy ]; then
  99. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  100. else
  101. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  102. fi
  103. echo 'Loading Linux x86_64-3.18.11-gentoo ...'
  104. linux /kernel-genkernel-x86_64-3.18.11-gentoo root=/dev/mapper/joe--pc--vg-root--gentoo ro
  105. echo 'Loading initial ramdisk ...'
  106. initrd /initramfs-genkernel-x86_64-3.18.11-gentoo
  107. }
  108. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-/dev/mapper/joe--pc--vg-root--gentoo' {
  109. menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.18.11-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.18.11-gentoo-advanced-/dev/mapper/joe--pc--vg-root--gentoo' {
  110. load_video
  111. insmod gzio
  112. insmod part_msdos
  113. insmod ext2
  114. set root='hd0,msdos1'
  115. if [ x$feature_platform_search_hint = xy ]; then
  116. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  117. else
  118. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  119. fi
  120. echo 'Loading Linux x86_64-3.18.11-gentoo ...'
  121. linux /kernel-genkernel-x86_64-3.18.11-gentoo root=/dev/mapper/joe--pc--vg-root--gentoo ro
  122. echo 'Loading initial ramdisk ...'
  123. initrd /initramfs-genkernel-x86_64-3.18.11-gentoo
  124. }
  125. menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.18.11-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.18.11-gentoo-recovery-/dev/mapper/joe--pc--vg-root--gentoo' {
  126. load_video
  127. insmod gzio
  128. insmod part_msdos
  129. insmod ext2
  130. set root='hd0,msdos1'
  131. if [ x$feature_platform_search_hint = xy ]; then
  132. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  133. else
  134. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  135. fi
  136. echo 'Loading Linux x86_64-3.18.11-gentoo ...'
  137. linux /kernel-genkernel-x86_64-3.18.11-gentoo root=/dev/mapper/joe--pc--vg-root--gentoo ro single
  138. echo 'Loading initial ramdisk ...'
  139. initrd /initramfs-genkernel-x86_64-3.18.11-gentoo
  140. }
  141. menuentry 'Gentoo GNU/Linux, with Linux 3.13.0-48-generic' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-advanced-/dev/mapper/joe--pc--vg-root--gentoo' {
  142. load_video
  143. if [ "x$grub_platform" = xefi ]; then
  144. set gfxpayload=keep
  145. fi
  146. insmod gzio
  147. insmod part_msdos
  148. insmod ext2
  149. set root='hd0,msdos1'
  150. if [ x$feature_platform_search_hint = xy ]; then
  151. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  152. else
  153. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  154. fi
  155. echo 'Loading Linux 3.13.0-48-generic ...'
  156. linux /vmlinuz-3.13.0-48-generic root=/dev/mapper/joe--pc--vg-root--gentoo ro
  157. echo 'Loading initial ramdisk ...'
  158. initrd /initrd.img-3.13.0-48-generic
  159. }
  160. menuentry 'Gentoo GNU/Linux, with Linux 3.13.0-48-generic (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-recovery-/dev/mapper/joe--pc--vg-root--gentoo' {
  161. load_video
  162. if [ "x$grub_platform" = xefi ]; then
  163. set gfxpayload=keep
  164. fi
  165. insmod gzio
  166. insmod part_msdos
  167. insmod ext2
  168. set root='hd0,msdos1'
  169. if [ x$feature_platform_search_hint = xy ]; then
  170. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  171. else
  172. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  173. fi
  174. echo 'Loading Linux 3.13.0-48-generic ...'
  175. linux /vmlinuz-3.13.0-48-generic root=/dev/mapper/joe--pc--vg-root--gentoo ro single
  176. echo 'Loading initial ramdisk ...'
  177. initrd /initrd.img-3.13.0-48-generic
  178. }
  179. }
  180.  
  181. ### END /etc/grub.d/10_linux ###
  182.  
  183. ### BEGIN /etc/grub.d/20_linux_xen ###
  184.  
  185. ### END /etc/grub.d/20_linux_xen ###
  186.  
  187. ### BEGIN /etc/grub.d/30_os-prober ###
  188. ### END /etc/grub.d/30_os-prober ###
  189.  
  190. ### BEGIN /etc/grub.d/40_custom ###
  191. # This file provides an easy way to add custom menu entries. Simply type the
  192. # menu entries you want to add after this comment. Be careful not to change
  193. # the 'exec tail' line above.
  194. ### END /etc/grub.d/40_custom ###
  195.  
  196. ### BEGIN /etc/grub.d/41_custom ###
  197. if [ -f ${config_directory}/custom.cfg ]; then
  198. source ${config_directory}/custom.cfg
  199. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  200. source $prefix/custom.cfg;
  201. fi
  202. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement