Advertisement
Guest User

Untitled

a guest
Mar 29th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 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,msdos5)'
  44. search --no-floppy --fs-uuid --set=root 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  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 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  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. insmod part_msdos
  67. insmod ext2
  68. set root='(hd0,msdos5)'
  69. search --no-floppy --fs-uuid --set=root 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  70. insmod png
  71. if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  72. set color_normal=light-gray/black
  73. set color_highlight=white/black
  74. else
  75. set menu_color_normal=white/black
  76. set menu_color_highlight=black/light-gray
  77. fi
  78. ### END /etc/grub.d/05_debian_theme ###
  79.  
  80. ### BEGIN /etc/grub.d/10_linux ###
  81. function gfxmode {
  82. set gfxpayload="${1}"
  83. if [ "${1}" = "keep" ]; then
  84. set vt_handoff=vt.handoff=7
  85. else
  86. set vt_handoff=
  87. fi
  88. }
  89. if [ "${recordfail}" != 1 ]; then
  90. if [ -e ${prefix}/gfxblacklist.txt ]; then
  91. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  92. if [ ${match} = 0 ]; then
  93. set linux_gfx_mode=keep
  94. else
  95. set linux_gfx_mode=text
  96. fi
  97. else
  98. set linux_gfx_mode=text
  99. fi
  100. else
  101. set linux_gfx_mode=keep
  102. fi
  103. else
  104. set linux_gfx_mode=text
  105. fi
  106. export linux_gfx_mode
  107. if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
  108. menuentry 'Ubuntu, with Linux 3.5.0-47-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  109. recordfail
  110. gfxmode $linux_gfx_mode
  111. insmod gzio
  112. insmod part_msdos
  113. insmod ext2
  114. set root='(hd0,msdos5)'
  115. search --no-floppy --fs-uuid --set=root 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  116. linux /boot/vmlinuz-3.5.0-47-generic root=UUID=0e3e4e98-1e6a-418e-9eb4-632f5c9d0434 ro quiet splash $vt_handoff
  117. initrd /boot/initrd.img-3.5.0-47-generic
  118. }
  119. menuentry 'Ubuntu, with Linux 3.5.0-47-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  120. recordfail
  121. insmod gzio
  122. insmod part_msdos
  123. insmod ext2
  124. set root='(hd0,msdos5)'
  125. search --no-floppy --fs-uuid --set=root 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  126. echo 'Loading Linux 3.5.0-47-generic ...'
  127. linux /boot/vmlinuz-3.5.0-47-generic root=UUID=0e3e4e98-1e6a-418e-9eb4-632f5c9d0434 ro recovery nomodeset
  128. echo 'Loading initial ramdisk ...'
  129. initrd /boot/initrd.img-3.5.0-47-generic
  130. }
  131. submenu "Previous Linux versions" {
  132. menuentry 'Ubuntu, with Linux 3.5.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  133. recordfail
  134. gfxmode $linux_gfx_mode
  135. insmod gzio
  136. insmod part_msdos
  137. insmod ext2
  138. set root='(hd0,msdos5)'
  139. search --no-floppy --fs-uuid --set=root 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  140. linux /boot/vmlinuz-3.5.0-23-generic root=UUID=0e3e4e98-1e6a-418e-9eb4-632f5c9d0434 ro quiet splash $vt_handoff
  141. initrd /boot/initrd.img-3.5.0-23-generic
  142. }
  143. menuentry 'Ubuntu, with Linux 3.5.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  144. recordfail
  145. insmod gzio
  146. insmod part_msdos
  147. insmod ext2
  148. set root='(hd0,msdos5)'
  149. search --no-floppy --fs-uuid --set=root 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  150. echo 'Loading Linux 3.5.0-23-generic ...'
  151. linux /boot/vmlinuz-3.5.0-23-generic root=UUID=0e3e4e98-1e6a-418e-9eb4-632f5c9d0434 ro recovery nomodeset
  152. echo 'Loading initial ramdisk ...'
  153. initrd /boot/initrd.img-3.5.0-23-generic
  154. }
  155. }
  156. ### END /etc/grub.d/10_linux ###
  157.  
  158. ### BEGIN /etc/grub.d/20_linux_xen ###
  159. ### END /etc/grub.d/20_linux_xen ###
  160.  
  161. ### BEGIN /etc/grub.d/20_memtest86+ ###
  162. menuentry "Memory test (memtest86+)" {
  163. insmod part_msdos
  164. insmod ext2
  165. set root='(hd0,msdos5)'
  166. search --no-floppy --fs-uuid --set=root 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  167. linux16 /boot/memtest86+.bin
  168. }
  169. menuentry "Memory test (memtest86+, serial console 115200)" {
  170. insmod part_msdos
  171. insmod ext2
  172. set root='(hd0,msdos5)'
  173. search --no-floppy --fs-uuid --set=root 0e3e4e98-1e6a-418e-9eb4-632f5c9d0434
  174. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  175. }
  176. ### END /etc/grub.d/20_memtest86+ ###
  177.  
  178. ### BEGIN /etc/grub.d/30_os-prober ###
  179. menuentry "Microsoft Windows XP Professional (on /dev/sda2)" --class windows --class os {
  180. insmod part_msdos
  181. insmod ntfs
  182. set root='(hd0,msdos2)'
  183. search --no-floppy --fs-uuid --set=root 8EE04C65E04C559D
  184. drivemap -s (hd0) ${root}
  185. chainloader +1
  186. }
  187. set timeout_style=menu
  188. if [ "${timeout}" = 0 ]; then
  189. set timeout=10
  190. fi
  191. ### END /etc/grub.d/30_os-prober ###
  192.  
  193. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  194. ### END /etc/grub.d/30_uefi-firmware ###
  195.  
  196. ### BEGIN /etc/grub.d/40_custom ###
  197. # This file provides an easy way to add custom menu entries. Simply type the
  198. # menu entries you want to add after this comment. Be careful not to change
  199. # the 'exec tail' line above.
  200. ### END /etc/grub.d/40_custom ###
  201.  
  202. ### BEGIN /etc/grub.d/41_custom ###
  203. if [ -f $prefix/custom.cfg ]; then
  204. source $prefix/custom.cfg;
  205. fi
  206. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement