Advertisement
Guest User

Untitled

a guest
Jan 6th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.13 KB | None | 0 0
  1. grubenv:
  2. # GRUB Environment Block
  3. recordfail=1
  4. ##########################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
  5.  
  6.  
  7. #
  8. # DO NOT EDIT THIS FILE
  9. #
  10. # It is automatically generated by grub-mkconfig using templates
  11. # from /etc/grub.d and settings from /etc/default/grub
  12. #
  13.  
  14. ### BEGIN /etc/grub.d/00_header ###
  15. if [ -s $prefix/grubenv ]; then
  16. set have_grubenv=true
  17. load_env
  18. fi
  19. set default="0"
  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 recordfail {
  45. set recordfail=1
  46. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  47. }
  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,msdos1'
  69. if [ x$feature_platform_search_hint = xy ]; then
  70. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  71. else
  72. search --no-floppy --fs-uuid --set=root f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  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. set timeout=1
  90. fi
  91. ### END /etc/grub.d/00_header ###
  92.  
  93. ### BEGIN /etc/grub.d/05_debian_theme ###
  94. set menu_color_normal=white/black
  95. set menu_color_highlight=black/light-gray
  96. ### END /etc/grub.d/05_debian_theme ###
  97.  
  98. ### BEGIN /etc/grub.d/10_linux ###
  99. function gfxmode {
  100. set gfxpayload="${1}"
  101. if [ "${1}" = "keep" ]; then
  102. set vt_handoff=vt.handoff=7
  103. else
  104. set vt_handoff=
  105. fi
  106. }
  107. if [ "${recordfail}" != 1 ]; then
  108. if [ -e ${prefix}/gfxblacklist.txt ]; then
  109. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  110. if [ ${match} = 0 ]; then
  111. set linux_gfx_mode=keep
  112. else
  113. set linux_gfx_mode=text
  114. fi
  115. else
  116. set linux_gfx_mode=text
  117. fi
  118. else
  119. set linux_gfx_mode=keep
  120. fi
  121. else
  122. set linux_gfx_mode=text
  123. fi
  124. export linux_gfx_mode
  125. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f4d4a0aa-c809-47e2-bde9-cf18b9b8a442' {
  126. recordfail
  127. load_video
  128. gfxmode $linux_gfx_mode
  129. insmod gzio
  130. insmod part_msdos
  131. insmod ext2
  132. set root='hd0,msdos1'
  133. if [ x$feature_platform_search_hint = xy ]; then
  134. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  135. else
  136. search --no-floppy --fs-uuid --set=root f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  137. fi
  138. linux /boot/vmlinuz-3.11.0-12-generic root=UUID=f4d4a0aa-c809-47e2-bde9-cf18b9b8a442 ro text
  139. initrd /boot/initrd.img-3.11.0-12-generic
  140. }
  141. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-f4d4a0aa-c809-47e2-bde9-cf18b9b8a442' {
  142. menuentry 'Ubuntu, with Linux 3.11.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-advanced-f4d4a0aa-c809-47e2-bde9-cf18b9b8a442' {
  143. recordfail
  144. load_video
  145. gfxmode $linux_gfx_mode
  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 f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  152. else
  153. search --no-floppy --fs-uuid --set=root f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  154. fi
  155. echo 'Loading Linux 3.11.0-12-generic ...'
  156. linux /boot/vmlinuz-3.11.0-12-generic root=UUID=f4d4a0aa-c809-47e2-bde9-cf18b9b8a442 ro text
  157. echo 'Loading initial ramdisk ...'
  158. initrd /boot/initrd.img-3.11.0-12-generic
  159. }
  160. menuentry 'Ubuntu, with Linux 3.11.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-recovery-f4d4a0aa-c809-47e2-bde9-cf18b9b8a442' {
  161. recordfail
  162. load_video
  163. insmod gzio
  164. insmod part_msdos
  165. insmod ext2
  166. set root='hd0,msdos1'
  167. if [ x$feature_platform_search_hint = xy ]; then
  168. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  169. else
  170. search --no-floppy --fs-uuid --set=root f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  171. fi
  172. echo 'Loading Linux 3.11.0-12-generic ...'
  173. linux /boot/vmlinuz-3.11.0-12-generic root=UUID=f4d4a0aa-c809-47e2-bde9-cf18b9b8a442 ro recovery nomodeset
  174. echo 'Loading initial ramdisk ...'
  175. initrd /boot/initrd.img-3.11.0-12-generic
  176. }
  177. }
  178.  
  179. ### END /etc/grub.d/10_linux ###
  180.  
  181. ### BEGIN /etc/grub.d/20_linux_xen ###
  182.  
  183. ### END /etc/grub.d/20_linux_xen ###
  184.  
  185. ### BEGIN /etc/grub.d/20_memtest86+ ###
  186. menuentry 'Memory test (memtest86+)' {
  187. insmod part_msdos
  188. insmod ext2
  189. set root='hd0,msdos1'
  190. if [ x$feature_platform_search_hint = xy ]; then
  191. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  192. else
  193. search --no-floppy --fs-uuid --set=root f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  194. fi
  195. linux16 /boot/memtest86+.bin
  196. }
  197. menuentry 'Memory test (memtest86+, serial console 115200)' {
  198. insmod part_msdos
  199. insmod ext2
  200. set root='hd0,msdos1'
  201. if [ x$feature_platform_search_hint = xy ]; then
  202. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  203. else
  204. search --no-floppy --fs-uuid --set=root f4d4a0aa-c809-47e2-bde9-cf18b9b8a442
  205. fi
  206. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  207. }
  208. ### END /etc/grub.d/20_memtest86+ ###
  209.  
  210. ### BEGIN /etc/grub.d/30_os-prober ###
  211. if [ "x${timeout}" != "x-1" ]; then
  212. if keystatus; then
  213. if keystatus --shift; then
  214. set timeout=-1
  215. else
  216. set timeout=0
  217. fi
  218. else
  219. if sleep --interruptible 3 ; then
  220. set timeout=0
  221. fi
  222. fi
  223. fi
  224. ### END /etc/grub.d/30_os-prober ###
  225.  
  226. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  227. ### END /etc/grub.d/30_uefi-firmware ###
  228.  
  229. ### BEGIN /etc/grub.d/40_custom ###
  230. # This file provides an easy way to add custom menu entries. Simply type the
  231. # menu entries you want to add after this comment. Be careful not to change
  232. # the 'exec tail' line above.
  233. ### END /etc/grub.d/40_custom ###
  234.  
  235. ### BEGIN /etc/grub.d/41_custom ###
  236. if [ -f ${config_directory}/custom.cfg ]; then
  237. source ${config_directory}/custom.cfg
  238. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  239. source $prefix/custom.cfg;
  240. fi
  241. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement