Advertisement
micko_L

grub.cfg

Sep 2nd, 2013
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.34 KB | None | 0 0
  1. #
  2. # DO NOT EDIT THIS FILE
  3. #
  4. # It is automatically generated by grub-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. set have_grubenv=true
  11. load_env
  12. fi
  13. set default="${saved_entry}"
  14.  
  15. if [ x"${feature_menuentry_id}" = xy ]; then
  16. menuentry_id_option="--id"
  17. else
  18. menuentry_id_option=""
  19. fi
  20.  
  21. export menuentry_id_option
  22.  
  23. if [ "${prev_saved_entry}" ]; then
  24. set saved_entry="${prev_saved_entry}"
  25. save_env saved_entry
  26. set prev_saved_entry=
  27. save_env prev_saved_entry
  28. set boot_once=true
  29. fi
  30.  
  31. function savedefault {
  32. if [ -z "${boot_once}" ]; then
  33. saved_entry="${chosen}"
  34. save_env saved_entry
  35. fi
  36. }
  37.  
  38. function recordfail {
  39. set recordfail=1
  40. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  41. }
  42.  
  43. function load_video {
  44. if [ x$feature_all_video_module = xy ]; then
  45. insmod all_video
  46. else
  47. insmod efi_gop
  48. insmod efi_uga
  49. insmod ieee1275_fb
  50. insmod vbe
  51. insmod vga
  52. insmod video_bochs
  53. insmod video_cirrus
  54. fi
  55. }
  56.  
  57. terminal_input console
  58. terminal_output console
  59. if [ "${recordfail}" = 1 ]; then
  60. set timeout=-1
  61. else
  62. set timeout=10
  63. fi
  64. ### END /etc/grub.d/00_header ###
  65.  
  66. ### BEGIN /etc/grub.d/05_debian_theme ###
  67. set menu_color_normal=white/black
  68. set menu_color_highlight=black/light-gray
  69. if background_color 44,0,30; then
  70. clear
  71. fi
  72. ### END /etc/grub.d/05_debian_theme ###
  73.  
  74. ### BEGIN /etc/grub.d/10_linux ###
  75. function gfxmode {
  76. set gfxpayload="${1}"
  77. if [ "${1}" = "keep" ]; then
  78. set vt_handoff=vt.handoff=7
  79. else
  80. set vt_handoff=
  81. fi
  82. }
  83. if [ "${recordfail}" != 1 ]; then
  84. if [ -e ${prefix}/gfxblacklist.txt ]; then
  85. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  86. if [ ${match} = 0 ]; then
  87. set linux_gfx_mode=keep
  88. else
  89. set linux_gfx_mode=text
  90. fi
  91. else
  92. set linux_gfx_mode=text
  93. fi
  94. else
  95. set linux_gfx_mode=keep
  96. fi
  97. else
  98. set linux_gfx_mode=text
  99. fi
  100. export linux_gfx_mode
  101. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ddbf4c3b-b9c1-4bde-9e28-5949a83aefd5' {
  102. recordfail
  103. load_video
  104. gfxmode $linux_gfx_mode
  105. insmod gzio
  106. insmod part_gpt
  107. insmod ext2
  108. set root='hd0,gpt4'
  109. if [ x$feature_platform_search_hint = xy ]; then
  110. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 --hint='hd0,gpt4' 9c9e9898-4ad2-42c0-991b-cf214732bbd4
  111. else
  112. search --no-floppy --fs-uuid --set=root 9c9e9898-4ad2-42c0-991b-cf214732bbd4
  113. fi
  114. linux /vmlinuz-3.8.0-29-generic root=UUID=ddbf4c3b-b9c1-4bde-9e28-5949a83aefd5 ro
  115. initrd /initrd.img-3.8.0-29-generic
  116. }
  117. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-ddbf4c3b-b9c1-4bde-9e28-5949a83aefd5' {
  118. menuentry 'Ubuntu, with Linux 3.8.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-29-generic-advanced-ddbf4c3b-b9c1-4bde-9e28-5949a83aefd5' {
  119. recordfail
  120. load_video
  121. gfxmode $linux_gfx_mode
  122. insmod gzio
  123. insmod part_gpt
  124. insmod ext2
  125. set root='hd0,gpt4'
  126. if [ x$feature_platform_search_hint = xy ]; then
  127. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 --hint='hd0,gpt4' 9c9e9898-4ad2-42c0-991b-cf214732bbd4
  128. else
  129. search --no-floppy --fs-uuid --set=root 9c9e9898-4ad2-42c0-991b-cf214732bbd4
  130. fi
  131. echo 'Loading Linux 3.8.0-29-generic ...'
  132. linux /vmlinuz-3.8.0-29-generic root=UUID=ddbf4c3b-b9c1-4bde-9e28-5949a83aefd5 ro
  133. echo 'Loading initial ramdisk ...'
  134. initrd /initrd.img-3.8.0-29-generic
  135. }
  136. menuentry 'Ubuntu, with Linux 3.8.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-29-generic-recovery-ddbf4c3b-b9c1-4bde-9e28-5949a83aefd5' {
  137. recordfail
  138. load_video
  139. insmod gzio
  140. insmod part_gpt
  141. insmod ext2
  142. set root='hd0,gpt4'
  143. if [ x$feature_platform_search_hint = xy ]; then
  144. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 --hint='hd0,gpt4' 9c9e9898-4ad2-42c0-991b-cf214732bbd4
  145. else
  146. search --no-floppy --fs-uuid --set=root 9c9e9898-4ad2-42c0-991b-cf214732bbd4
  147. fi
  148. echo 'Loading Linux 3.8.0-29-generic ...'
  149. linux /vmlinuz-3.8.0-29-generic root=UUID=ddbf4c3b-b9c1-4bde-9e28-5949a83aefd5 ro recovery nomodeset
  150. echo 'Loading initial ramdisk ...'
  151. initrd /initrd.img-3.8.0-29-generic
  152. }
  153. }
  154.  
  155. ### END /etc/grub.d/10_linux ###
  156.  
  157. ### BEGIN /etc/grub.d/20_linux_xen ###
  158.  
  159. ### END /etc/grub.d/20_linux_xen ###
  160.  
  161. ### BEGIN /etc/grub.d/25_custom ###
  162.  
  163. menuentry "Windows UEFI bkpbootmgfw.efi" {
  164. search --fs-uuid --no-floppy --set=root 3E5D-3E54
  165. chainloader (${root})/EFI/Microsoft/Boot/bkpbootmgfw.efi
  166. }
  167. menuentry "Windows Boot UEFI loader" {
  168. search --fs-uuid --no-floppy --set=root 3E5D-3E54
  169. chainloader (${root})/EFI/Boot/bkpbootx64.efi
  170. }
  171.  
  172. menuentry "efi/EFI/Boot/bkpbootx64.efi" {
  173. search --fs-uuid --no-floppy --set=root 9c9e9898-4ad2-42c0-991b-cf214732bbd4
  174. chainloader (${root})/efi/EFI/Boot/bkpbootx64.efi
  175. }
  176. ### END /etc/grub.d/25_custom ###
  177.  
  178. ### BEGIN /etc/grub.d/30_os-prober ###
  179. menuentry 'Gentoo Base System release 2.2' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-5708b3cf-f06d-4391-ae14-787f2c5b8eda' {
  180. insmod part_gpt
  181. insmod ext2
  182. set root='hd0,gpt6'
  183. if [ x$feature_platform_search_hint = xy ]; then
  184. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 --hint='hd0,gpt6' 5708b3cf-f06d-4391-ae14-787f2c5b8eda
  185. else
  186. search --no-floppy --fs-uuid --set=root 5708b3cf-f06d-4391-ae14-787f2c5b8eda
  187. fi
  188. linux /boot/kerneli-3.10.7-gentoo root=/dev/sda6 ro init=/usr/lib/systemd/systemd
  189. }
  190. submenu 'Advanced options for Gentoo Base System release 2.2' $menuentry_id_option 'osprober-gnulinux-advanced-5708b3cf-f06d-4391-ae14-787f2c5b8eda' {
  191. menuentry 'Gentoo GNU/Linux (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kerneli-3.10.7-gentoo--5708b3cf-f06d-4391-ae14-787f2c5b8eda' {
  192. insmod part_gpt
  193. insmod ext2
  194. set root='hd0,gpt6'
  195. if [ x$feature_platform_search_hint = xy ]; then
  196. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 --hint='hd0,gpt6' 5708b3cf-f06d-4391-ae14-787f2c5b8eda
  197. else
  198. search --no-floppy --fs-uuid --set=root 5708b3cf-f06d-4391-ae14-787f2c5b8eda
  199. fi
  200. linux /boot/kerneli-3.10.7-gentoo root=/dev/sda6 ro init=/usr/lib/systemd/systemd
  201. }
  202. menuentry 'Gentoo GNU/Linux, with Linux 3.10.7-gentoo (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kerneli-3.10.7-gentoo--5708b3cf-f06d-4391-ae14-787f2c5b8eda' {
  203. insmod part_gpt
  204. insmod ext2
  205. set root='hd0,gpt6'
  206. if [ x$feature_platform_search_hint = xy ]; then
  207. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 --hint='hd0,gpt6' 5708b3cf-f06d-4391-ae14-787f2c5b8eda
  208. else
  209. search --no-floppy --fs-uuid --set=root 5708b3cf-f06d-4391-ae14-787f2c5b8eda
  210. fi
  211. linux /boot/kerneli-3.10.7-gentoo root=/dev/sda6 ro init=/usr/lib/systemd/systemd
  212. }
  213. menuentry 'Gentoo GNU/Linux, with Linux 3.10.7-gentoo (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kerneli-3.10.7-gentoo-root=/dev/sda6 ro single-5708b3cf-f06d-4391-ae14-787f2c5b8eda' {
  214. insmod part_gpt
  215. insmod ext2
  216. set root='hd0,gpt6'
  217. if [ x$feature_platform_search_hint = xy ]; then
  218. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 --hint='hd0,gpt6' 5708b3cf-f06d-4391-ae14-787f2c5b8eda
  219. else
  220. search --no-floppy --fs-uuid --set=root 5708b3cf-f06d-4391-ae14-787f2c5b8eda
  221. fi
  222. linux /boot/kerneli-3.10.7-gentoo root=/dev/sda6 ro single
  223. }
  224. }
  225.  
  226. ### END /etc/grub.d/30_os-prober ###
  227.  
  228. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  229. menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
  230. fwsetup
  231. }
  232. ### END /etc/grub.d/30_uefi-firmware ###
  233.  
  234. ### BEGIN /etc/grub.d/40_custom ###
  235. # This file provides an easy way to add custom menu entries. Simply type the
  236. # menu entries you want to add after this comment. Be careful not to change
  237. # the 'exec tail' line above.
  238.  
  239. menuentry 'Gentoo - uusin' --class gnu-linux --class gnu --class os {
  240. insmod part_gpt
  241. insmod ext2
  242. set root='hd0,gpt4'
  243. linux /gentoo-uusin root=/dev/sda6 init=/usr/lib/systemd/systemd loglevel=6
  244. }
  245. menuentry 'Gentoo - testing' --class gnu-linux --class gnu --class os {
  246. load_video
  247. gfxmode $linux_gfx_mode
  248. insmod gzio
  249. insmod part_gpt
  250. insmod ext2
  251. set root='hd0,gpt4'
  252. linux /kerneli-3.10.7-gentoo root=/dev/sda6 verbose nosplash debug
  253. }
  254.  
  255. ### END /etc/grub.d/40_custom ###
  256.  
  257. ### BEGIN /etc/grub.d/41_custom ###
  258. if [ -f ${config_directory}/custom.cfg ]; then
  259. source ${config_directory}/custom.cfg
  260. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  261. source $prefix/custom.cfg;
  262. fi
  263. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement