Advertisement
Guest User

/etc/boot/grub.cfg

a guest
Jul 22nd, 2012
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.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. terminal_input console
  42. terminal_output console
  43.  
  44. if [ "${recordfail}" = 1 ]; then
  45. set timeout=-1
  46. else
  47. set timeout=10
  48. fi
  49. ### END /etc/grub.d/00_header ###
  50.  
  51. ### BEGIN /etc/grub.d/05_debian_theme ###
  52. set menu_color_normal=white/black
  53. set menu_color_highlight=black/light-gray
  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.  
  85. menuentry 'Ubuntu, with Linux 3.4.6-ck3-jck1-j1' --class ubuntu --class gnu-linux --class gnu --class os {
  86. recordfail
  87. gfxmode $linux_gfx_mode
  88. insmod gzio
  89. insmod part_msdos
  90. insmod ext2
  91. set root='(hd0,msdos2)'
  92. search --no-floppy --fs-uuid --set=root aa14da9a-b0ef-46de-a574-996669b11259
  93. linux /boot/vmlinuz-3.4.6-ck3-jck1-j1 root=UUID=aa14da9a-b0ef-46de-a574-996669b11259 ro
  94. initrd /boot/initrd.img-3.4.6-ck3-jck1-j1
  95. }
  96. menuentry 'Ubuntu, with Linux 3.4.6-ck3-jck1-j1 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  97. recordfail
  98. insmod gzio
  99. insmod part_msdos
  100. insmod ext2
  101. set root='(hd0,msdos2)'
  102. search --no-floppy --fs-uuid --set=root aa14da9a-b0ef-46de-a574-996669b11259
  103. echo 'Loading Linux 3.4.6-ck3-jck1-j1 ...'
  104. linux /boot/vmlinuz-3.4.6-ck3-jck1-j1 root=UUID=aa14da9a-b0ef-46de-a574-996669b11259 ro recovery nomodeset
  105. echo 'Loading initial ramdisk ...'
  106. initrd /boot/initrd.img-3.4.6-ck3-jck1-j1
  107. }
  108. submenu "Previous Linux versions" {
  109. menuentry 'Ubuntu, with Linux 3.2.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  110. recordfail
  111. gfxmode $linux_gfx_mode
  112. insmod gzio
  113. insmod part_msdos
  114. insmod ext2
  115. set root='(hd0,msdos2)'
  116. search --no-floppy --fs-uuid --set=root aa14da9a-b0ef-46de-a574-996669b11259
  117. linux /boot/vmlinuz-3.2.0-26-generic root=UUID=aa14da9a-b0ef-46de-a574-996669b11259 ro
  118. initrd /boot/initrd.img-3.2.0-26-generic
  119. }
  120.  
  121. menuentry 'Ubuntu, with Linux 3.2.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  122. recordfail
  123. insmod gzio
  124. insmod part_msdos
  125. insmod ext2
  126. set root='(hd0,msdos2)'
  127. search --no-floppy --fs-uuid --set=root aa14da9a-b0ef-46de-a574-996669b11259
  128. echo 'Loading Linux 3.2.0-26-generic ...'
  129. linux /boot/vmlinuz-3.2.0-26-generic root=UUID=aa14da9a-b0ef-46de-a574-996669b11259 ro recovery nomodeset
  130. echo 'Loading initial ramdisk ...'
  131. initrd /boot/initrd.img-3.2.0-26-generic
  132. }
  133. }
  134. ### END /etc/grub.d/10_linux ###
  135.  
  136. ### BEGIN /etc/grub.d/20_linux_xen ###
  137. ### END /etc/grub.d/20_linux_xen ###
  138.  
  139. ### BEGIN /etc/grub.d/20_memtest86+ ###
  140. menuentry "Memory test (memtest86+)" {
  141. insmod part_msdos
  142. insmod ext2
  143. set root='(hd0,msdos2)'
  144. search --no-floppy --fs-uuid --set=root aa14da9a-b0ef-46de-a574-996669b11259
  145. linux16 /boot/memtest86+.bin
  146. }
  147. menuentry "Memory test (memtest86+, serial console 115200)" {
  148. insmod part_msdos
  149. insmod ext2
  150. set root='(hd0,msdos2)'
  151. search --no-floppy --fs-uuid --set=root aa14da9a-b0ef-46de-a574-996669b11259
  152. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  153. }
  154. ### END /etc/grub.d/20_memtest86+ ###
  155.  
  156. ### BEGIN /etc/grub.d/30_os-prober ###
  157. if [ "x${timeout}" != "x-1" ]; then
  158. if sleep --verbose --interruptible 10 ; then
  159. set timeout=0
  160.  
  161. fi
  162. fi
  163. ### END /etc/grub.d/30_os-prober ###
  164.  
  165. ### BEGIN /etc/grub.d/40_custom ###
  166. # This file provides an easy way to add custom menu entries. Simply type the
  167. # menu entries you want to add after this comment. Be careful not to change
  168. # the 'exec tail' line above.
  169. ### END /etc/grub.d/40_custom ###
  170.  
  171. ### BEGIN /etc/grub.d/41_custom ###
  172. if [ -f $prefix/custom.cfg ]; then
  173. source $prefix/custom.cfg;
  174. fi
  175. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement