Advertisement
Guest User

Untitled

a guest
Nov 25th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 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. if [ "${recordfail}" = 1 ]; then
  42. set timeout=-1
  43. else
  44. set timeout=10
  45. fi
  46. ### END /etc/grub.d/00_header ###
  47.  
  48. ### BEGIN /etc/grub.d/05_debian_theme ###
  49. set menu_color_normal=white/black
  50. set menu_color_highlight=black/light-gray
  51. if background_color 44,0,30; then
  52. clear
  53. fi
  54. ### END /etc/grub.d/05_debian_theme ###
  55.  
  56. ### BEGIN /etc/grub.d/10_linux ###
  57. function gfxmode {
  58. set gfxpayload="${1}"
  59. if [ "${1}" = "keep" ]; then
  60. set vt_handoff=vt.handoff=7
  61. else
  62. set vt_handoff=
  63. fi
  64. }
  65. if [ "${recordfail}" != 1 ]; then
  66. if [ -e ${prefix}/gfxblacklist.txt ]; then
  67. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  68. if [ ${match} = 0 ]; then
  69. set linux_gfx_mode=keep
  70. else
  71. set linux_gfx_mode=text
  72. fi
  73. else
  74. set linux_gfx_mode=text
  75. fi
  76. else
  77. set linux_gfx_mode=keep
  78. fi
  79. else
  80. set linux_gfx_mode=text
  81. fi
  82. export linux_gfx_mode
  83. if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
  84. menuentry 'Ubuntu, with Linux 3.8.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  85. recordfail
  86. gfxmode $linux_gfx_mode
  87. insmod gzio
  88. insmod part_msdos
  89. insmod ext2
  90. set root='(hd1,msdos1)'
  91. search --no-floppy --fs-uuid --set=root 7417593b-5643-44e2-8892-4e87da6fafad
  92. linux /vmlinuz-3.8.0-29-generic root=/dev/mapper/system ro quiet splash $vt_handoff
  93. initrd /initrd.img-3.8.0-29-generic
  94. }
  95. menuentry 'Ubuntu, with Linux 3.8.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  96. recordfail
  97. insmod gzio
  98. insmod part_msdos
  99. insmod ext2
  100. set root='(hd1,msdos1)'
  101. search --no-floppy --fs-uuid --set=root 7417593b-5643-44e2-8892-4e87da6fafad
  102. echo 'Loading Linux 3.8.0-29-generic ...'
  103. linux /vmlinuz-3.8.0-29-generic root=/dev/mapper/system ro recovery nomodeset
  104. echo 'Loading initial ramdisk ...'
  105. initrd /initrd.img-3.8.0-29-generic
  106. }
  107. submenu "Previous Linux versions" {
  108. menuentry 'Ubuntu, with Linux 3.2.0-56-generic-pae' --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='(hd1,msdos1)'
  115. search --no-floppy --fs-uuid --set=root 7417593b-5643-44e2-8892-4e87da6fafad
  116. linux /vmlinuz-3.2.0-56-generic-pae root=/dev/mapper/system ro quiet splash $vt_handoff
  117. initrd /initrd.img-3.2.0-56-generic-pae
  118. }
  119. menuentry 'Ubuntu, with Linux 3.2.0-56-generic-pae (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='(hd1,msdos1)'
  125. search --no-floppy --fs-uuid --set=root 7417593b-5643-44e2-8892-4e87da6fafad
  126. echo 'Loading Linux 3.2.0-56-generic-pae ...'
  127. linux /vmlinuz-3.2.0-56-generic-pae root=/dev/mapper/system ro recovery nomodeset
  128. echo 'Loading initial ramdisk ...'
  129. initrd /initrd.img-3.2.0-56-generic-pae
  130. }
  131. }
  132. ### END /etc/grub.d/10_linux ###
  133.  
  134. ### BEGIN /etc/grub.d/20_linux_xen ###
  135. ### END /etc/grub.d/20_linux_xen ###
  136.  
  137. ### BEGIN /etc/grub.d/20_memtest86+ ###
  138. menuentry "Memory test (memtest86+)" {
  139. insmod part_msdos
  140. insmod ext2
  141. set root='(hd1,msdos1)'
  142. search --no-floppy --fs-uuid --set=root 7417593b-5643-44e2-8892-4e87da6fafad
  143. linux16 /memtest86+.bin
  144. }
  145. menuentry "Memory test (memtest86+, serial console 115200)" {
  146. insmod part_msdos
  147. insmod ext2
  148. set root='(hd1,msdos1)'
  149. search --no-floppy --fs-uuid --set=root 7417593b-5643-44e2-8892-4e87da6fafad
  150. linux16 /memtest86+.bin console=ttyS0,115200n8
  151. }
  152. ### END /etc/grub.d/20_memtest86+ ###
  153.  
  154. ### BEGIN /etc/grub.d/30_os-prober ###
  155. if [ "x${timeout}" != "x-1" ]; then
  156. if keystatus; then
  157. if keystatus --shift; then
  158. set timeout=-1
  159. else
  160. set timeout=0
  161. fi
  162. else
  163. if sleep --interruptible 3 ; then
  164. set timeout=0
  165. fi
  166. fi
  167. fi
  168. ### END /etc/grub.d/30_os-prober ###
  169.  
  170. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  171. ### END /etc/grub.d/30_uefi-firmware ###
  172.  
  173. ### BEGIN /etc/grub.d/40_custom ###
  174. # This file provides an easy way to add custom menu entries. Simply type the
  175. # menu entries you want to add after this comment. Be careful not to change
  176. # the 'exec tail' line above.
  177. ### END /etc/grub.d/40_custom ###
  178.  
  179. ### BEGIN /etc/grub.d/41_custom ###
  180. if [ -f $prefix/custom.cfg ]; then
  181. source $prefix/custom.cfg;
  182. fi
  183. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement