Techn9ne1730

grub

Jun 24th, 2012
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 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='(hd3,msdos1)'
  44. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  45. if loadfont /usr/share/grub/unicode.pf2 ; then
  46. set gfxmode=auto
  47. load_video
  48. insmod gfxterm
  49. insmod part_msdos
  50. insmod ext2
  51. set root='(hd3,msdos1)'
  52. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  53. set locale_dir=($root)/boot/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. if background_color 75,75,75; then
  69. clear
  70. fi
  71. ### END /etc/grub.d/05_debian_theme ###
  72.  
  73. ### BEGIN /etc/grub.d/10_linux ###
  74. function gfxmode {
  75. set gfxpayload="${1}"
  76. if [ "${1}" = "keep" ]; then
  77. set vt_handoff=vt.handoff=7
  78. else
  79. set vt_handoff=
  80. fi
  81. }
  82. if [ "${recordfail}" != 1 ]; then
  83. if [ -e ${prefix}/gfxblacklist.txt ]; then
  84. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  85. if [ ${match} = 0 ]; then
  86. set linux_gfx_mode=keep
  87. else
  88. set linux_gfx_mode=text
  89. fi
  90. else
  91. set linux_gfx_mode=text
  92. fi
  93. else
  94. set linux_gfx_mode=keep
  95. fi
  96. else
  97. set linux_gfx_mode=text
  98. fi
  99. export linux_gfx_mode
  100. if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
  101. menuentry 'Ubuntu, with Linux 3.2.0-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  102. recordfail
  103. gfxmode $linux_gfx_mode
  104. insmod gzio
  105. insmod part_msdos
  106. insmod ext2
  107. set root='(hd3,msdos1)'
  108. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  109. linux /boot/vmlinuz-3.2.0-25-generic root=UUID=b5316a9d-f273-4faf-b4a6-6ec5c2b32688 ro quiet splash $vt_handoff
  110. initrd /boot/initrd.img-3.2.0-25-generic
  111. }
  112. menuentry 'Ubuntu, with Linux 3.2.0-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  113. recordfail
  114. insmod gzio
  115. insmod part_msdos
  116. insmod ext2
  117. set root='(hd3,msdos1)'
  118. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  119. echo 'Loading Linux 3.2.0-25-generic ...'
  120. linux /boot/vmlinuz-3.2.0-25-generic root=UUID=b5316a9d-f273-4faf-b4a6-6ec5c2b32688 ro recovery nomodeset
  121. echo 'Loading initial ramdisk ...'
  122. initrd /boot/initrd.img-3.2.0-25-generic
  123. }
  124. submenu "Previous Linux versions" {
  125. menuentry 'Ubuntu, with Linux 3.2.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  126. recordfail
  127. gfxmode $linux_gfx_mode
  128. insmod gzio
  129. insmod part_msdos
  130. insmod ext2
  131. set root='(hd3,msdos1)'
  132. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  133. linux /boot/vmlinuz-3.2.0-24-generic root=UUID=b5316a9d-f273-4faf-b4a6-6ec5c2b32688 ro quiet splash $vt_handoff
  134. initrd /boot/initrd.img-3.2.0-24-generic
  135. }
  136. menuentry 'Ubuntu, with Linux 3.2.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  137. recordfail
  138. insmod gzio
  139. insmod part_msdos
  140. insmod ext2
  141. set root='(hd3,msdos1)'
  142. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  143. echo 'Loading Linux 3.2.0-24-generic ...'
  144. linux /boot/vmlinuz-3.2.0-24-generic root=UUID=b5316a9d-f273-4faf-b4a6-6ec5c2b32688 ro recovery nomodeset
  145. echo 'Loading initial ramdisk ...'
  146. initrd /boot/initrd.img-3.2.0-24-generic
  147. }
  148. menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  149. recordfail
  150. gfxmode $linux_gfx_mode
  151. insmod gzio
  152. insmod part_msdos
  153. insmod ext2
  154. set root='(hd3,msdos1)'
  155. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  156. linux /boot/vmlinuz-3.2.0-23-generic root=UUID=b5316a9d-f273-4faf-b4a6-6ec5c2b32688 ro quiet splash $vt_handoff
  157. initrd /boot/initrd.img-3.2.0-23-generic
  158. }
  159. menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  160. recordfail
  161. insmod gzio
  162. insmod part_msdos
  163. insmod ext2
  164. set root='(hd3,msdos1)'
  165. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  166. echo 'Loading Linux 3.2.0-23-generic ...'
  167. linux /boot/vmlinuz-3.2.0-23-generic root=UUID=b5316a9d-f273-4faf-b4a6-6ec5c2b32688 ro recovery nomodeset
  168. echo 'Loading initial ramdisk ...'
  169. initrd /boot/initrd.img-3.2.0-23-generic
  170. }
  171. }
  172. ### END /etc/grub.d/10_linux ###
  173.  
  174. ### BEGIN /etc/grub.d/20_linux_xen ###
  175. ### END /etc/grub.d/20_linux_xen ###
  176.  
  177. ### BEGIN /etc/grub.d/20_memtest86+ ###
  178. menuentry "Memory test (memtest86+)" {
  179. insmod part_msdos
  180. insmod ext2
  181. set root='(hd3,msdos1)'
  182. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  183. linux16 /boot/memtest86+.bin
  184. }
  185. menuentry "Memory test (memtest86+, serial console 115200)" {
  186. insmod part_msdos
  187. insmod ext2
  188. set root='(hd3,msdos1)'
  189. search --no-floppy --fs-uuid --set=root b5316a9d-f273-4faf-b4a6-6ec5c2b32688
  190. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  191. }
  192. ### END /etc/grub.d/20_memtest86+ ###
  193.  
  194. ### BEGIN /etc/grub.d/30_os-prober ###
  195. menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
  196. insmod part_msdos
  197. insmod ntfs
  198. set root='(hd0,msdos1)'
  199. search --no-floppy --fs-uuid --set=root 34F89B62F89B2162
  200. chainloader +1
  201. }
  202. menuentry "Windows 7 (loader) (on /dev/sdb1)" --class windows --class os {
  203. insmod part_msdos
  204. insmod ntfs
  205. set root='(hd1,msdos1)'
  206. search --no-floppy --fs-uuid --set=root A8CC48FACC48C3F2
  207. chainloader +1
  208. }
  209. ### END /etc/grub.d/30_os-prober ###
  210.  
  211. ### BEGIN /etc/grub.d/40_custom ###
  212. # This file provides an easy way to add custom menu entries. Simply type the
  213. # menu entries you want to add after this comment. Be careful not to change
  214. # the 'exec tail' line above.
  215. ### END /etc/grub.d/40_custom ###
  216.  
  217. ### BEGIN /etc/grub.d/41_custom ###
  218. if [ -f $prefix/custom.cfg ]; then
  219. source $prefix/custom.cfg;
  220. fi
  221. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment