Advertisement
Guest User

Untitled

a guest
Oct 24th, 2011
1,045
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 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="5"
  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,msdos5)'
  44. search --no-floppy --fs-uuid --set=root c7fb3f0b-b80c-46bd-97aa-c2bfef555bff
  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='(hd0,msdos5)'
  52. search --no-floppy --fs-uuid --set=root c7fb3f0b-b80c-46bd-97aa-c2bfef555bff
  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=black/white
  67. set menu_color_highlight=white/black
  68. if background_color 0,0,0; then
  69. clear
  70. fi
  71. ### END /etc/grub.d/05_debian_theme ###
  72.  
  73. ### BEGIN /etc/grub.d/10_linux ###
  74. if [ ${recordfail} != 1 ]; then
  75. if [ -e ${prefix}/gfxblacklist.txt ]; then
  76. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  77. if [ ${match} = 0 ]; then
  78. set linux_gfx_mode=keep
  79. else
  80. set linux_gfx_mode=text
  81. fi
  82. else
  83. set linux_gfx_mode=text
  84. fi
  85. else
  86. set linux_gfx_mode=keep
  87. fi
  88. else
  89. set linux_gfx_mode=text
  90. fi
  91. export linux_gfx_mode
  92. if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
  93. menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  94. recordfail
  95. set gfxpayload=$linux_gfx_mode
  96. insmod gzio
  97. insmod part_msdos
  98. insmod ext2
  99. set root='(hd0,msdos5)'
  100. search --no-floppy --fs-uuid --set=root c7fb3f0b-b80c-46bd-97aa-c2bfef555bff
  101. linux /boot/vmlinuz-3.0.0-12-generic root=UUID=c7fb3f0b-b80c-46bd-97aa-c2bfef555bff ro quiet vga=769 quiet splash vt.handoff=7
  102. initrd /boot/initrd.img-3.0.0-12-generic
  103. }
  104. menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  105. recordfail
  106. insmod gzio
  107. insmod part_msdos
  108. insmod ext2
  109. set root='(hd0,msdos5)'
  110. search --no-floppy --fs-uuid --set=root c7fb3f0b-b80c-46bd-97aa-c2bfef555bff
  111. echo 'Loading Linux 3.0.0-12-generic ...'
  112. linux /boot/vmlinuz-3.0.0-12-generic root=UUID=c7fb3f0b-b80c-46bd-97aa-c2bfef555bff ro recovery nomodeset quiet vga=769
  113. echo 'Loading initial ramdisk ...'
  114. initrd /boot/initrd.img-3.0.0-12-generic
  115. }
  116. ### END /etc/grub.d/10_linux ###
  117.  
  118. ### BEGIN /etc/grub.d/20_linux_xen ###
  119. ### END /etc/grub.d/20_linux_xen ###
  120.  
  121. ### BEGIN /etc/grub.d/20_memtest86+ ###
  122. menuentry "Memory test (memtest86+)" {
  123. insmod part_msdos
  124. insmod ext2
  125. set root='(hd0,msdos5)'
  126. search --no-floppy --fs-uuid --set=root c7fb3f0b-b80c-46bd-97aa-c2bfef555bff
  127. linux16 /boot/memtest86+.bin
  128. }
  129. menuentry "Memory test (memtest86+, serial console 115200)" {
  130. insmod part_msdos
  131. insmod ext2
  132. set root='(hd0,msdos5)'
  133. search --no-floppy --fs-uuid --set=root c7fb3f0b-b80c-46bd-97aa-c2bfef555bff
  134. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  135. }
  136. ### END /etc/grub.d/20_memtest86+ ###
  137.  
  138. ### BEGIN /etc/grub.d/30_os-prober ###
  139. menuentry "Windows Recovery Environment (loader) (on /dev/sda1)" --class windows --class os {
  140. insmod part_msdos
  141. insmod ntfs
  142. set root='(hd0,msdos1)'
  143. search --no-floppy --fs-uuid --set=root C012CB7D12CB76C6
  144. drivemap -s (hd0) ${root}
  145. chainloader +1
  146. }
  147. menuentry "Windows 7 (loader) (on /dev/sda2)" --class windows --class os {
  148. insmod part_msdos
  149. insmod ntfs
  150. set root='(hd0,msdos2)'
  151. search --no-floppy --fs-uuid --set=root 2E82CD1382CCE087
  152. chainloader +1
  153. }
  154. menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
  155. insmod part_msdos
  156. insmod ntfs
  157. set root='(hd0,msdos3)'
  158. search --no-floppy --fs-uuid --set=root DAAE8180AE815643
  159. chainloader +1
  160. }
  161. ### END /etc/grub.d/30_os-prober ###
  162.  
  163. ### BEGIN /etc/grub.d/40_custom ###
  164. # This file provides an easy way to add custom menu entries. Simply type the
  165. # menu entries you want to add after this comment. Be careful not to change
  166. # the 'exec tail' line above.
  167. ### END /etc/grub.d/40_custom ###
  168.  
  169. ### BEGIN /etc/grub.d/41_custom ###
  170. if [ -f $prefix/custom.cfg ]; then
  171. source $prefix/custom.cfg;
  172. fi
  173. ### END /etc/grub.d/41_custom ###
  174.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement