Advertisement
travnewmatic

grub.cfg

Mar 29th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.97 KB | None | 0 0
  1. tnewman@utopic:~$ cat /boot/grub/grub.cfg
  2. #
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # It is automatically generated by grub-mkconfig using templates
  6. # from /etc/grub.d and settings from /etc/default/grub
  7. #
  8.  
  9. ### BEGIN /etc/grub.d/00_header ###
  10. if [ -s $prefix/grubenv ]; then
  11. set have_grubenv=true
  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="0"
  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. function recordfail {
  46. set recordfail=1
  47. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  48. }
  49. function load_video {
  50. if [ x$feature_all_video_module = xy ]; then
  51. insmod all_video
  52. else
  53. insmod efi_gop
  54. insmod efi_uga
  55. insmod ieee1275_fb
  56. insmod vbe
  57. insmod vga
  58. insmod video_bochs
  59. insmod video_cirrus
  60. fi
  61. }
  62.  
  63. if [ x$feature_default_font_path = xy ] ; then
  64. font=unicode
  65. else
  66. insmod part_msdos
  67. insmod ext2
  68. set root='hd0,msdos7'
  69. if [ x$feature_platform_search_hint = xy ]; then
  70. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 107b8bdb-078d-478e-8953-26049aa75ab8
  71. else
  72. search --no-floppy --fs-uuid --set=root 107b8bdb-078d-478e-8953-26049aa75ab8
  73. fi
  74. font="/usr/share/grub/unicode.pf2"
  75. fi
  76.  
  77. if loadfont $font ; then
  78. set gfxmode=auto
  79. load_video
  80. insmod gfxterm
  81. set locale_dir=$prefix/locale
  82. set lang=en_US
  83. insmod gettext
  84. fi
  85. terminal_output gfxterm
  86. if [ "${recordfail}" = 1 ] ; then
  87. set timeout=-1
  88. else
  89. if [ x$feature_timeout_style = xy ] ; then
  90. set timeout_style=menu
  91. set timeout=10
  92. # Fallback normal timeout code in case the timeout_style feature is
  93. # unavailable.
  94. else
  95. set timeout=10
  96. fi
  97. fi
  98. ### END /etc/grub.d/00_header ###
  99.  
  100. ### BEGIN /etc/grub.d/05_debian_theme ###
  101. set menu_color_normal=white/black
  102. set menu_color_highlight=black/light-gray
  103. #set_background_image "images/tile.png";
  104.  
  105. set menu_color_normal=white/black
  106. set menu_color_highlight=black/light-gray
  107. if background_color 0,0,0; then
  108. clear
  109. fi
  110. ### END /etc/grub.d/05_debian_theme ###
  111.  
  112. ### BEGIN /etc/grub.d/10_linux ###
  113. function gfxmode {
  114. set gfxpayload="${1}"
  115. if [ "${1}" = "keep" ]; then
  116. set vt_handoff=vt.handoff=7
  117. else
  118. set vt_handoff=
  119. fi
  120. }
  121. if [ "${recordfail}" != 1 ]; then
  122. if [ -e ${prefix}/gfxblacklist.txt ]; then
  123. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  124. if [ ${match} = 0 ]; then
  125. set linux_gfx_mode=keep
  126. else
  127. set linux_gfx_mode=text
  128. fi
  129. else
  130. set linux_gfx_mode=text
  131. fi
  132. else
  133. set linux_gfx_mode=keep
  134. fi
  135. else
  136. set linux_gfx_mode=text
  137. fi
  138. export linux_gfx_mode
  139. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-107b8bdb-078d-478e-8953-26049aa75ab8' {
  140. recordfail
  141. load_video
  142. gfxmode $linux_gfx_mode
  143. insmod gzio
  144. insmod part_msdos
  145. insmod ext2
  146. set root='hd0,msdos3'
  147. if [ x$feature_platform_search_hint = xy ]; then
  148. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  149. else
  150. search --no-floppy --fs-uuid --set=root 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  151. fi
  152. linux /vmlinuz-3.16.0-33-generic root=UUID=107b8bdb-078d-478e-8953-26049aa75ab8 ro quiet splash $vt_handoff
  153. initrd /initrd.img-3.16.0-33-generic
  154. }
  155. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-107b8bdb-078d-478e-8953-26049aa75ab8' {
  156. menuentry 'Ubuntu, with Linux 3.16.0-33-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-33-generic-advanced-107b8bdb-078d-478e-8953-26049aa75ab8' {
  157. recordfail
  158. load_video
  159. gfxmode $linux_gfx_mode
  160. insmod gzio
  161. insmod part_msdos
  162. insmod ext2
  163. set root='hd0,msdos3'
  164. if [ x$feature_platform_search_hint = xy ]; then
  165. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  166. else
  167. search --no-floppy --fs-uuid --set=root 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  168. fi
  169. echo 'Loading Linux 3.16.0-33-generic ...'
  170. linux /vmlinuz-3.16.0-33-generic root=UUID=107b8bdb-078d-478e-8953-26049aa75ab8 ro quiet splash $vt_handoff
  171. echo 'Loading initial ramdisk ...'
  172. initrd /initrd.img-3.16.0-33-generic
  173. }
  174. menuentry 'Ubuntu, with Linux 3.16.0-33-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-33-generic-recovery-107b8bdb-078d-478e-8953-26049aa75ab8' {
  175. recordfail
  176. load_video
  177. insmod gzio
  178. insmod part_msdos
  179. insmod ext2
  180. set root='hd0,msdos3'
  181. if [ x$feature_platform_search_hint = xy ]; then
  182. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  183. else
  184. search --no-floppy --fs-uuid --set=root 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  185. fi
  186. echo 'Loading Linux 3.16.0-33-generic ...'
  187. linux /vmlinuz-3.16.0-33-generic root=UUID=107b8bdb-078d-478e-8953-26049aa75ab8 ro recovery nomodeset
  188. echo 'Loading initial ramdisk ...'
  189. initrd /initrd.img-3.16.0-33-generic
  190. }
  191. menuentry 'Ubuntu, with Linux 3.16.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-advanced-107b8bdb-078d-478e-8953-26049aa75ab8' {
  192. recordfail
  193. load_video
  194. gfxmode $linux_gfx_mode
  195. insmod gzio
  196. insmod part_msdos
  197. insmod ext2
  198. set root='hd0,msdos3'
  199. if [ x$feature_platform_search_hint = xy ]; then
  200. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  201. else
  202. search --no-floppy --fs-uuid --set=root 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  203. fi
  204. echo 'Loading Linux 3.16.0-23-generic ...'
  205. linux /vmlinuz-3.16.0-23-generic root=UUID=107b8bdb-078d-478e-8953-26049aa75ab8 ro quiet splash $vt_handoff
  206. echo 'Loading initial ramdisk ...'
  207. initrd /initrd.img-3.16.0-23-generic
  208. }
  209. menuentry 'Ubuntu, with Linux 3.16.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-recovery-107b8bdb-078d-478e-8953-26049aa75ab8' {
  210. recordfail
  211. load_video
  212. insmod gzio
  213. insmod part_msdos
  214. insmod ext2
  215. set root='hd0,msdos3'
  216. if [ x$feature_platform_search_hint = xy ]; then
  217. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  218. else
  219. search --no-floppy --fs-uuid --set=root 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  220. fi
  221. echo 'Loading Linux 3.16.0-23-generic ...'
  222. linux /vmlinuz-3.16.0-23-generic root=UUID=107b8bdb-078d-478e-8953-26049aa75ab8 ro recovery nomodeset
  223. echo 'Loading initial ramdisk ...'
  224. initrd /initrd.img-3.16.0-23-generic
  225. }
  226. }
  227.  
  228. ### END /etc/grub.d/10_linux ###
  229.  
  230. ### BEGIN /etc/grub.d/20_linux_xen ###
  231.  
  232. ### END /etc/grub.d/20_linux_xen ###
  233.  
  234. ### BEGIN /etc/grub.d/20_memtest86+ ###
  235. menuentry 'Memory test (memtest86+)' {
  236. insmod part_msdos
  237. insmod ext2
  238. set root='hd0,msdos3'
  239. if [ x$feature_platform_search_hint = xy ]; then
  240. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  241. else
  242. search --no-floppy --fs-uuid --set=root 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  243. fi
  244. knetbsd /memtest86+.elf
  245. }
  246. menuentry 'Memory test (memtest86+, serial console 115200)' {
  247. insmod part_msdos
  248. insmod ext2
  249. set root='hd0,msdos3'
  250. if [ x$feature_platform_search_hint = xy ]; then
  251. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  252. else
  253. search --no-floppy --fs-uuid --set=root 9166f4ec-660d-49d5-b7da-4cac1f1f5d9f
  254. fi
  255. linux16 /memtest86+.bin console=ttyS0,115200n8
  256. }
  257. ### END /etc/grub.d/20_memtest86+ ###
  258.  
  259. ### BEGIN /etc/grub.d/30_os-prober ###
  260. menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-CC042B9D042B8A12' {
  261. insmod part_msdos
  262. insmod ntfs
  263. set root='hd0,msdos1'
  264. if [ x$feature_platform_search_hint = xy ]; then
  265. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 CC042B9D042B8A12
  266. else
  267. search --no-floppy --fs-uuid --set=root CC042B9D042B8A12
  268. fi
  269. parttool ${root} hidden-
  270. chainloader +1
  271. }
  272.  
  273. set timeout_style=menu
  274. if [ "${timeout}" = 0 ]; then
  275. set timeout=10
  276. fi
  277. ### END /etc/grub.d/30_os-prober ###
  278.  
  279. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  280. ### END /etc/grub.d/30_uefi-firmware ###
  281.  
  282. ### BEGIN /etc/grub.d/40_custom ###
  283. # This file provides an easy way to add custom menu entries. Simply type the
  284. # menu entries you want to add after this comment. Be careful not to change
  285. # the 'exec tail' line above.
  286. ### END /etc/grub.d/40_custom ###
  287.  
  288. ### BEGIN /etc/grub.d/41_custom ###
  289. if [ -f ${config_directory}/custom.cfg ]; then
  290. source ${config_directory}/custom.cfg
  291. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  292. source $prefix/custom.cfg;
  293. fi
  294. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement