Advertisement
MasterRoot24

ubuntu-grub.cfg

Apr 19th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.79 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. if [ "${next_entry}" ] ; then
  14. set default="${next_entry}"
  15. set next_entry=
  16. save_env next_entry
  17. set boot_once=true
  18. else
  19. set default="0"
  20. fi
  21.  
  22. if [ x"${feature_menuentry_id}" = xy ]; then
  23. menuentry_id_option="--id"
  24. else
  25. menuentry_id_option=""
  26. fi
  27.  
  28. export menuentry_id_option
  29.  
  30. if [ "${prev_saved_entry}" ]; then
  31. set saved_entry="${prev_saved_entry}"
  32. save_env saved_entry
  33. set prev_saved_entry=
  34. save_env prev_saved_entry
  35. set boot_once=true
  36. fi
  37.  
  38. function savedefault {
  39. if [ -z "${boot_once}" ]; then
  40. saved_entry="${chosen}"
  41. save_env saved_entry
  42. fi
  43. }
  44. function recordfail {
  45. set recordfail=1
  46. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  47. }
  48. function load_video {
  49. if [ x$feature_all_video_module = xy ]; then
  50. insmod all_video
  51. else
  52. insmod efi_gop
  53. insmod efi_uga
  54. insmod ieee1275_fb
  55. insmod vbe
  56. insmod vga
  57. insmod video_bochs
  58. insmod video_cirrus
  59. fi
  60. }
  61.  
  62. if [ x$feature_default_font_path = xy ] ; then
  63. font=unicode
  64. else
  65. insmod part_msdos
  66. insmod lvm
  67. insmod ext2
  68. set root='lvmid/Xe1LTf-VKcO-9IL0-fom4-ZGrM-DvJQ-FiLdtg/O5ZtMo-IOws-CAdA-d3fd-LuT7-oInU-lFBgp9'
  69. if [ x$feature_platform_search_hint = xy ]; then
  70. search --no-floppy --fs-uuid --set=root --hint='lvmid/Xe1LTf-VKcO-9IL0-fom4-ZGrM-DvJQ-FiLdtg/O5ZtMo-IOws-CAdA-d3fd-LuT7-oInU-lFBgp9' 2af9ef27-45ce-41d6-8f86-df41af6af715
  71. else
  72. search --no-floppy --fs-uuid --set=root 2af9ef27-45ce-41d6-8f86-df41af6af715
  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_GB
  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=hidden
  91. set timeout=0
  92. # Fallback hidden-timeout code in case the timeout_style feature is
  93. # unavailable.
  94. elif sleep --interruptible 0 ; then
  95. set timeout=0
  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. ### END /etc/grub.d/05_debian_theme ###
  104.  
  105. ### BEGIN /etc/grub.d/10_linux ###
  106. function gfxmode {
  107. set gfxpayload="${1}"
  108. if [ "${1}" = "keep" ]; then
  109. set vt_handoff=vt.handoff=7
  110. else
  111. set vt_handoff=
  112. fi
  113. }
  114. if [ "${recordfail}" != 1 ]; then
  115. if [ -e ${prefix}/gfxblacklist.txt ]; then
  116. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  117. if [ ${match} = 0 ]; then
  118. set linux_gfx_mode=keep
  119. else
  120. set linux_gfx_mode=text
  121. fi
  122. else
  123. set linux_gfx_mode=text
  124. fi
  125. else
  126. set linux_gfx_mode=keep
  127. fi
  128. else
  129. set linux_gfx_mode=text
  130. fi
  131. export linux_gfx_mode
  132. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2af9ef27-45ce-41d6-8f86-df41af6af715' {
  133. recordfail
  134. load_video
  135. gfxmode $linux_gfx_mode
  136. insmod gzio
  137. insmod part_msdos
  138. insmod ext2
  139. set root='hd0,msdos1'
  140. if [ x$feature_platform_search_hint = xy ]; then
  141. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  142. else
  143. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  144. fi
  145. linux /kernel-genkernel-x86_64-3.18.11-gentoo root=/dev/mapper/joe--pc--vg-root--xubuntu ro quiet splash $vt_handoff
  146. initrd /initramfs-genkernel-x86_64-3.18.11-gentoo
  147. }
  148. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-2af9ef27-45ce-41d6-8f86-df41af6af715' {
  149. menuentry 'Ubuntu, with Linux x86_64-3.18.11-gentoo' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.18.11-gentoo-advanced-2af9ef27-45ce-41d6-8f86-df41af6af715' {
  150. recordfail
  151. load_video
  152. gfxmode $linux_gfx_mode
  153. insmod gzio
  154. insmod part_msdos
  155. insmod ext2
  156. set root='hd0,msdos1'
  157. if [ x$feature_platform_search_hint = xy ]; then
  158. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  159. else
  160. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  161. fi
  162. echo 'Loading Linux x86_64-3.18.11-gentoo ...'
  163. linux /kernel-genkernel-x86_64-3.18.11-gentoo root=/dev/mapper/joe--pc--vg-root--xubuntu ro quiet splash $vt_handoff
  164. echo 'Loading initial ramdisk ...'
  165. initrd /initramfs-genkernel-x86_64-3.18.11-gentoo
  166. }
  167. menuentry 'Ubuntu, with Linux x86_64-3.18.11-gentoo (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.18.11-gentoo-recovery-2af9ef27-45ce-41d6-8f86-df41af6af715' {
  168. recordfail
  169. load_video
  170. insmod gzio
  171. insmod part_msdos
  172. insmod ext2
  173. set root='hd0,msdos1'
  174. if [ x$feature_platform_search_hint = xy ]; then
  175. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  176. else
  177. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  178. fi
  179. echo 'Loading Linux x86_64-3.18.11-gentoo ...'
  180. linux /kernel-genkernel-x86_64-3.18.11-gentoo root=/dev/mapper/joe--pc--vg-root--xubuntu ro recovery nomodeset
  181. echo 'Loading initial ramdisk ...'
  182. initrd /initramfs-genkernel-x86_64-3.18.11-gentoo
  183. }
  184. menuentry 'Ubuntu, with Linux 3.13.0-48-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-advanced-2af9ef27-45ce-41d6-8f86-df41af6af715' {
  185. recordfail
  186. load_video
  187. gfxmode $linux_gfx_mode
  188. insmod gzio
  189. insmod part_msdos
  190. insmod ext2
  191. set root='hd0,msdos1'
  192. if [ x$feature_platform_search_hint = xy ]; then
  193. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  194. else
  195. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  196. fi
  197. echo 'Loading Linux 3.13.0-48-generic ...'
  198. linux /vmlinuz-3.13.0-48-generic root=/dev/mapper/joe--pc--vg-root--xubuntu ro quiet splash $vt_handoff
  199. echo 'Loading initial ramdisk ...'
  200. initrd /initrd.img-3.13.0-48-generic
  201. }
  202. menuentry 'Ubuntu, with Linux 3.13.0-48-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-recovery-2af9ef27-45ce-41d6-8f86-df41af6af715' {
  203. recordfail
  204. load_video
  205. insmod gzio
  206. insmod part_msdos
  207. insmod ext2
  208. set root='hd0,msdos1'
  209. if [ x$feature_platform_search_hint = xy ]; then
  210. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  211. else
  212. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  213. fi
  214. echo 'Loading Linux 3.13.0-48-generic ...'
  215. linux /vmlinuz-3.13.0-48-generic root=/dev/mapper/joe--pc--vg-root--xubuntu ro recovery nomodeset
  216. echo 'Loading initial ramdisk ...'
  217. initrd /initrd.img-3.13.0-48-generic
  218. }
  219. }
  220.  
  221. ### END /etc/grub.d/10_linux ###
  222.  
  223. ### BEGIN /etc/grub.d/20_linux_xen ###
  224.  
  225. ### END /etc/grub.d/20_linux_xen ###
  226.  
  227. ### BEGIN /etc/grub.d/20_memtest86+ ###
  228. menuentry 'Memory test (memtest86+)' {
  229. insmod part_msdos
  230. insmod ext2
  231. set root='hd0,msdos1'
  232. if [ x$feature_platform_search_hint = xy ]; then
  233. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  234. else
  235. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  236. fi
  237. knetbsd /memtest86+.elf
  238. }
  239. menuentry 'Memory test (memtest86+, serial console 115200)' {
  240. insmod part_msdos
  241. insmod ext2
  242. set root='hd0,msdos1'
  243. if [ x$feature_platform_search_hint = xy ]; then
  244. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 967a6a7e-9e64-4367-a18c-0b60db7070de
  245. else
  246. search --no-floppy --fs-uuid --set=root 967a6a7e-9e64-4367-a18c-0b60db7070de
  247. fi
  248. linux16 /memtest86+.bin console=ttyS0,115200n8
  249. }
  250. ### END /etc/grub.d/20_memtest86+ ###
  251.  
  252. ### BEGIN /etc/grub.d/30_os-prober ###
  253. menuentry 'Gentoo Base System release 2.2 (on /dev/mapper/joe--pc--vg-root--gentoo)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-aff8d1ee-5d17-46bf-a58e-c87d2ca737a6' {
  254. insmod part_msdos
  255. insmod lvm
  256. insmod ext2
  257. set root='lvmid/Xe1LTf-VKcO-9IL0-fom4-ZGrM-DvJQ-FiLdtg/M9BMPl-XvHc-bmho-OFOY-UeDl-1LFI-oHtAMs'
  258. if [ x$feature_platform_search_hint = xy ]; then
  259. search --no-floppy --fs-uuid --set=root --hint='lvmid/Xe1LTf-VKcO-9IL0-fom4-ZGrM-DvJQ-FiLdtg/M9BMPl-XvHc-bmho-OFOY-UeDl-1LFI-oHtAMs' aff8d1ee-5d17-46bf-a58e-c87d2ca737a6
  260. else
  261. search --no-floppy --fs-uuid --set=root aff8d1ee-5d17-46bf-a58e-c87d2ca737a6
  262. fi
  263. linux /boot/vmlinuz-3.13.0-48-generic root=/dev/dm-1
  264. initrd /boot/initrd.img-3.13.0-48-generic
  265. }
  266. submenu 'Advanced options for Gentoo Base System release 2.2 (on /dev/mapper/joe--pc--vg-root--gentoo)' $menuentry_id_option 'osprober-gnulinux-advanced-aff8d1ee-5d17-46bf-a58e-c87d2ca737a6' {
  267. menuentry 'Gentoo Base System release 2.2 (on /dev/mapper/joe--pc--vg-root--gentoo)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.13.0-48-generic--aff8d1ee-5d17-46bf-a58e-c87d2ca737a6' {
  268. insmod part_msdos
  269. insmod lvm
  270. insmod ext2
  271. set root='lvmid/Xe1LTf-VKcO-9IL0-fom4-ZGrM-DvJQ-FiLdtg/M9BMPl-XvHc-bmho-OFOY-UeDl-1LFI-oHtAMs'
  272. if [ x$feature_platform_search_hint = xy ]; then
  273. search --no-floppy --fs-uuid --set=root --hint='lvmid/Xe1LTf-VKcO-9IL0-fom4-ZGrM-DvJQ-FiLdtg/M9BMPl-XvHc-bmho-OFOY-UeDl-1LFI-oHtAMs' aff8d1ee-5d17-46bf-a58e-c87d2ca737a6
  274. else
  275. search --no-floppy --fs-uuid --set=root aff8d1ee-5d17-46bf-a58e-c87d2ca737a6
  276. fi
  277. linux /boot/vmlinuz-3.13.0-48-generic root=/dev/dm-1
  278. initrd /boot/initrd.img-3.13.0-48-generic
  279. }
  280. menuentry 'Gentoo Base System release 2.2 (on /dev/mapper/joe--pc--vg-root--gentoo)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.18.11-gentoo--aff8d1ee-5d17-46bf-a58e-c87d2ca737a6' {
  281. insmod part_msdos
  282. insmod lvm
  283. insmod ext2
  284. set root='lvmid/Xe1LTf-VKcO-9IL0-fom4-ZGrM-DvJQ-FiLdtg/M9BMPl-XvHc-bmho-OFOY-UeDl-1LFI-oHtAMs'
  285. if [ x$feature_platform_search_hint = xy ]; then
  286. search --no-floppy --fs-uuid --set=root --hint='lvmid/Xe1LTf-VKcO-9IL0-fom4-ZGrM-DvJQ-FiLdtg/M9BMPl-XvHc-bmho-OFOY-UeDl-1LFI-oHtAMs' aff8d1ee-5d17-46bf-a58e-c87d2ca737a6
  287. else
  288. search --no-floppy --fs-uuid --set=root aff8d1ee-5d17-46bf-a58e-c87d2ca737a6
  289. fi
  290. linux /boot/kernel-genkernel-x86_64-3.18.11-gentoo root=/dev/dm-1
  291. initrd /boot/initramfs-genkernel-x86_64-3.18.11-gentoo
  292. }
  293. }
  294.  
  295. set timeout_style=menu
  296. if [ "${timeout}" = 0 ]; then
  297. set timeout=10
  298. fi
  299. ### END /etc/grub.d/30_os-prober ###
  300.  
  301. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  302. ### END /etc/grub.d/30_uefi-firmware ###
  303.  
  304. ### BEGIN /etc/grub.d/40_custom ###
  305. # This file provides an easy way to add custom menu entries. Simply type the
  306. # menu entries you want to add after this comment. Be careful not to change
  307. # the 'exec tail' line above.
  308. ### END /etc/grub.d/40_custom ###
  309.  
  310. ### BEGIN /etc/grub.d/41_custom ###
  311. if [ -f ${config_directory}/custom.cfg ]; then
  312. source ${config_directory}/custom.cfg
  313. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  314. source $prefix/custom.cfg;
  315. fi
  316. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement