Advertisement
Guest User

Untitled

a guest
Aug 28th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. 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. set default="0"
  15.  
  16. if [ x"${feature_menuentry_id}" = xy ]; then
  17. menuentry_id_option="--id"
  18. else
  19. menuentry_id_option=""
  20. fi
  21.  
  22. export menuentry_id_option
  23.  
  24. if [ "${prev_saved_entry}" ]; then
  25. set saved_entry="${prev_saved_entry}"
  26. save_env saved_entry
  27. set prev_saved_entry=
  28. save_env prev_saved_entry
  29. set boot_once=true
  30. fi
  31.  
  32. function savedefault {
  33. if [ -z "${boot_once}" ]; then
  34. saved_entry="${chosen}"
  35. save_env saved_entry
  36. fi
  37. }
  38.  
  39. function recordfail {
  40. set recordfail=1
  41. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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 part_gpt
  63. insmod diskfilter
  64. insmod mdraid1x
  65. insmod ext2
  66. set root='mduuid/76b7ed6169a0a93f8dfd317a25ae30f8'
  67. if [ x$feature_platform_search_hint = xy ]; then
  68. search --no-floppy --fs-uuid --set=root --hint='mduuid/76b7ed6169a0a93f8dfd317a25ae30f8' fb56be91-1eac-4dcf-b392-20d26d838d31
  69. else
  70. search --no-floppy --fs-uuid --set=root fb56be91-1eac-4dcf-b392-20d26d838d31
  71. fi
  72. font="/grub/unicode.pf2"
  73. fi
  74.  
  75. if loadfont $font ; then
  76. set gfxmode=auto
  77. load_video
  78. insmod gfxterm
  79. set locale_dir=$prefix/locale
  80. set lang=en_US
  81. insmod gettext
  82. fi
  83. terminal_output gfxterm
  84. if [ "${recordfail}" = 1 ]; then
  85. set timeout=-1
  86. else
  87. set timeout=10
  88. fi
  89. ### END /etc/grub.d/00_header ###
  90.  
  91. ### BEGIN /etc/grub.d/05_debian_theme ###
  92. set menu_color_normal=white/black
  93. set menu_color_highlight=black/light-gray
  94. if background_color 44,0,30; then
  95. clear
  96. fi
  97. ### END /etc/grub.d/05_debian_theme ###
  98.  
  99. ### BEGIN /etc/grub.d/10_linux ###
  100. function gfxmode {
  101. set gfxpayload="${1}"
  102. if [ "${1}" = "keep" ]; then
  103. set vt_handoff=vt.handoff=7
  104. else
  105. set vt_handoff=
  106. fi
  107. }
  108. if [ "${recordfail}" != 1 ]; then
  109. if [ -e ${prefix}/gfxblacklist.txt ]; then
  110. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  111. if [ ${match} = 0 ]; then
  112. set linux_gfx_mode=keep
  113. else
  114. set linux_gfx_mode=text
  115. fi
  116. else
  117. set linux_gfx_mode=text
  118. fi
  119. else
  120. set linux_gfx_mode=keep
  121. fi
  122. else
  123. set linux_gfx_mode=text
  124. fi
  125. export linux_gfx_mode
  126. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b474e066-6ded-40c2-9544-b3456cb5e166' {
  127. recordfail
  128. load_video
  129. gfxmode $linux_gfx_mode
  130. insmod gzio
  131. insmod part_gpt
  132. insmod part_gpt
  133. insmod diskfilter
  134. insmod mdraid1x
  135. insmod ext2
  136. set root='mduuid/76b7ed6169a0a93f8dfd317a25ae30f8'
  137. if [ x$feature_platform_search_hint = xy ]; then
  138. search --no-floppy --fs-uuid --set=root --hint='mduuid/76b7ed6169a0a93f8dfd317a25ae30f8' fb56be91-1eac-4dcf-b392-20d26d838d31
  139. else
  140. search --no-floppy --fs-uuid --set=root fb56be91-1eac-4dcf-b392-20d26d838d31
  141. fi
  142. linux /vmlinuz-3.8.0-29-generic root=/dev/mapper/it-root ro quiet splash $vt_handoff
  143. initrd /initrd.img-3.8.0-29-generic
  144. }
  145. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-b474e066-6ded-40c2-9544-b3456cb5e166' {
  146. 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-b474e066-6ded-40c2-9544-b3456cb5e166' {
  147. recordfail
  148. load_video
  149. gfxmode $linux_gfx_mode
  150. insmod gzio
  151. insmod part_gpt
  152. insmod part_gpt
  153. insmod diskfilter
  154. insmod mdraid1x
  155. insmod ext2
  156. set root='mduuid/76b7ed6169a0a93f8dfd317a25ae30f8'
  157. if [ x$feature_platform_search_hint = xy ]; then
  158. search --no-floppy --fs-uuid --set=root --hint='mduuid/76b7ed6169a0a93f8dfd317a25ae30f8' fb56be91-1eac-4dcf-b392-20d26d838d31
  159. else
  160. search --no-floppy --fs-uuid --set=root fb56be91-1eac-4dcf-b392-20d26d838d31
  161. fi
  162. echo 'Loading Linux 3.8.0-29-generic ...'
  163. linux /vmlinuz-3.8.0-29-generic root=/dev/mapper/it-root ro quiet splash $vt_handoff
  164. echo 'Loading initial ramdisk ...'
  165. initrd /initrd.img-3.8.0-29-generic
  166. }
  167. 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-b474e066-6ded-40c2-9544-b3456cb5e166' {
  168. recordfail
  169. load_video
  170. insmod gzio
  171. insmod part_gpt
  172. insmod part_gpt
  173. insmod diskfilter
  174. insmod mdraid1x
  175. insmod ext2
  176. set root='mduuid/76b7ed6169a0a93f8dfd317a25ae30f8'
  177. if [ x$feature_platform_search_hint = xy ]; then
  178. search --no-floppy --fs-uuid --set=root --hint='mduuid/76b7ed6169a0a93f8dfd317a25ae30f8' fb56be91-1eac-4dcf-b392-20d26d838d31
  179. else
  180. search --no-floppy --fs-uuid --set=root fb56be91-1eac-4dcf-b392-20d26d838d31
  181. fi
  182. echo 'Loading Linux 3.8.0-29-generic ...'
  183. linux /vmlinuz-3.8.0-29-generic root=/dev/mapper/it-root ro recovery nomodeset
  184. echo 'Loading initial ramdisk ...'
  185. initrd /initrd.img-3.8.0-29-generic
  186. }
  187. }
  188.  
  189. ### END /etc/grub.d/10_linux ###
  190.  
  191. ### BEGIN /etc/grub.d/20_linux_xen ###
  192.  
  193. ### END /etc/grub.d/20_linux_xen ###
  194.  
  195. ### BEGIN /etc/grub.d/20_memtest86+ ###
  196. ### END /etc/grub.d/20_memtest86+ ###
  197.  
  198. ### BEGIN /etc/grub.d/30_os-prober ###
  199. if [ "x${timeout}" != "x-1" ]; then
  200. if keystatus; then
  201. if keystatus --shift; then
  202. set timeout=-1
  203. else
  204. set timeout=0
  205. fi
  206. else
  207. if sleep --interruptible 3 ; then
  208. set timeout=0
  209. fi
  210. fi
  211. fi
  212. ### END /etc/grub.d/30_os-prober ###
  213.  
  214. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  215. menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
  216. fwsetup
  217. }
  218. ### END /etc/grub.d/30_uefi-firmware ###
  219.  
  220. ### BEGIN /etc/grub.d/40_custom ###
  221. # This file provides an easy way to add custom menu entries. Simply type the
  222. # menu entries you want to add after this comment. Be careful not to change
  223. # the 'exec tail' line above.
  224. ### END /etc/grub.d/40_custom ###
  225.  
  226. ### BEGIN /etc/grub.d/41_custom ###
  227. if [ -f ${config_directory}/custom.cfg ]; then
  228. source ${config_directory}/custom.cfg
  229. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  230. source $prefix/custom.cfg;
  231. fi
  232. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement