Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 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="0"
  14. if [ "${prev_saved_entry}" ]; then
  15. set saved_entry="${prev_saved_entry}"
  16. save_env saved_entry
  17. set prev_saved_entry=
  18. save_env prev_saved_entry
  19. set boot_once=true
  20. fi
  21.  
  22. function savedefault {
  23. if [ -z "${boot_once}" ]; then
  24. saved_entry="${chosen}"
  25. save_env saved_entry
  26. fi
  27. }
  28.  
  29. function recordfail {
  30. set recordfail=1
  31. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  32. }
  33.  
  34. function load_video {
  35. insmod vbe
  36. insmod vga
  37. insmod video_bochs
  38. insmod video_cirrus
  39. }
  40.  
  41. insmod part_msdos
  42. insmod ext2
  43. set root='(hd0,msdos7)'
  44. search --no-floppy --fs-uuid --set=root 15b295cb-7fdd-4afc-ac3b-db5ecb59a124
  45. if loadfont ; then
  46. set gfxmode=auto
  47. load_video
  48. insmod gfxterm
  49. insmod part_msdos
  50. insmod ext2
  51. set root='(hd0,msdos7)'
  52. search --no-floppy --fs-uuid --set=root 15b295cb-7fdd-4afc-ac3b-db5ecb59a124
  53. set locale_dir=($root)/grub/locale
  54. set lang=en_US
  55. insmod gettext
  56. fi
  57. terminal_output gfxterm
  58. if [ "${recordfail}" = 1 ]; then
  59. set timeout=-1
  60. else
  61. set timeout=10
  62. fi
  63. ### END /etc/grub.d/00_header ###
  64.  
  65. ### BEGIN /etc/grub.d/05_debian_theme ###
  66. set menu_color_normal=white/black
  67. set menu_color_highlight=black/light-gray
  68. ### END /etc/grub.d/05_debian_theme ###
  69.  
  70. ### BEGIN /etc/grub.d/10_linux ###
  71. function gfxmode {
  72. set gfxpayload="$1"
  73. if [ "$1" = "keep" ]; then
  74. set vt_handoff=vt.handoff=7
  75. else
  76. set vt_handoff=
  77. fi
  78. }
  79. if [ ${recordfail} != 1 ]; then
  80. if [ -e ${prefix}/gfxblacklist.txt ]; then
  81. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  82. if [ ${match} = 0 ]; then
  83. set linux_gfx_mode=keep
  84. else
  85. set linux_gfx_mode=text
  86. fi
  87. else
  88. set linux_gfx_mode=text
  89. fi
  90. else
  91. set linux_gfx_mode=keep
  92. fi
  93. else
  94. set linux_gfx_mode=text
  95. fi
  96. export linux_gfx_mode
  97. if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
  98. menuentry 'Ubuntu, with Linux 3.2.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  99. recordfail
  100. gfxmode $linux_gfx_mode
  101. insmod gzio
  102. insmod part_msdos
  103. insmod ext2
  104. set root='(hd0,msdos7)'
  105. search --no-floppy --fs-uuid --set=root 15b295cb-7fdd-4afc-ac3b-db5ecb59a124
  106. linux /vmlinuz-3.2.0-37-generic root=743c64f7-c8be-4505-bff1-409740cffccc ro quiet splash $vt_handoff
  107. }
  108. menuentry 'Ubuntu, with Linux 3.2.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  109. recordfail
  110. insmod gzio
  111. insmod part_msdos
  112. insmod ext2
  113. set root='(hd0,msdos7)'
  114. search --no-floppy --fs-uuid --set=root 15b295cb-7fdd-4afc-ac3b-db5ecb59a124
  115. echo 'Loading Linux 3.2.0-37-generic ...'
  116. linux /vmlinuz-3.2.0-37-generic root=743c64f7-c8be-4505-bff1-409740cffccc ro recovery nomodeset
  117. }
  118. ### END /etc/grub.d/10_linux ###
  119.  
  120. ### BEGIN /etc/grub.d/20_linux_xen ###
  121. ### END /etc/grub.d/20_linux_xen ###
  122.  
  123. ### BEGIN /etc/grub.d/20_memtest86+ ###
  124. menuentry "Memory test (memtest86+)" {
  125. insmod part_msdos
  126. insmod ext2
  127. set root='(hd0,msdos7)'
  128. search --no-floppy --fs-uuid --set=root 15b295cb-7fdd-4afc-ac3b-db5ecb59a124
  129. linux16 /memtest86+.bin
  130. }
  131. menuentry "Memory test (memtest86+, serial console 115200)" {
  132. insmod part_msdos
  133. insmod ext2
  134. set root='(hd0,msdos7)'
  135. search --no-floppy --fs-uuid --set=root 15b295cb-7fdd-4afc-ac3b-db5ecb59a124
  136. linux16 /memtest86+.bin console=ttyS0,115200n8
  137. }
  138. ### END /etc/grub.d/20_memtest86+ ###
  139.  
  140. ### BEGIN /etc/grub.d/30_os-prober ###
  141. if [ "x${timeout}" != "x-1" ]; then
  142. if keystatus; then
  143. if keystatus --shift; then
  144. set timeout=-1
  145. else
  146. set timeout=0
  147. fi
  148. else
  149. if sleep --interruptible 3 ; then
  150. set timeout=0
  151. fi
  152. fi
  153. fi
  154. ### END /etc/grub.d/30_os-prober ###
  155.  
  156. ### BEGIN /etc/grub.d/40_custom ###
  157. # This file provides an easy way to add custom menu entries. Simply type the
  158. # menu entries you want to add after this comment. Be careful not to change
  159. # the 'exec tail' line above.
  160. ### END /etc/grub.d/40_custom ###
  161.  
  162. ### BEGIN /etc/grub.d/41_custom ###
  163. if [ -f $prefix/custom.cfg ]; then
  164. source $prefix/custom.cfg;
  165. fi
  166. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement