byghis

cat grub.cfg |xclip

Sep 17th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.62 KB | None | 0 0
  1.  
  2. #
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # It is automatically generated by grub-mkconfig using templates
  6. # from /etc/grub.d and settings from /etc/default/grub
  7. #
  8.  
  9. ### BEGIN /etc/grub.d/00_header ###
  10. if [ -s $prefix/grubenv ]; then
  11. set have_grubenv=true
  12. load_env
  13. fi
  14. set default="0"
  15. if [ "${prev_saved_entry}" ]; then
  16. set saved_entry="${prev_saved_entry}"
  17. save_env saved_entry
  18. set prev_saved_entry=
  19. save_env prev_saved_entry
  20. set boot_once=true
  21. fi
  22.  
  23. function savedefault {
  24. if [ -z "${boot_once}" ]; then
  25. saved_entry="${chosen}"
  26. save_env saved_entry
  27. fi
  28. }
  29.  
  30. function recordfail {
  31. set recordfail=1
  32. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  33. }
  34.  
  35. function load_video {
  36. insmod vbe
  37. insmod vga
  38. insmod video_bochs
  39. insmod video_cirrus
  40. }
  41.  
  42. insmod part_msdos
  43. insmod ext2
  44. set root='(/dev/sda,msdos5)'
  45. search --no-floppy --fs-uuid --set=root 13b2372b-00ee-4701-a687-e9acf5f176c1
  46. if loadfont /usr/share/grub/unicode.pf2 ; then
  47. set gfxmode=auto
  48. load_video
  49. insmod gfxterm
  50. fi
  51. terminal_output gfxterm
  52. insmod part_msdos
  53. insmod ext2
  54. set root='(/dev/sda,msdos3)'
  55. search --no-floppy --fs-uuid --set=root 396ddbaa-1c65-4525-beff-778eeac487dd
  56. set locale_dir=($root)/grub/locale
  57. set lang=en_US
  58. insmod gettext
  59. if [ "${recordfail}" = 1 ]; then
  60. set timeout=-1
  61. else
  62. set timeout=10
  63. fi
  64. ### END /etc/grub.d/00_header ###
  65.  
  66. ### BEGIN /etc/grub.d/05_debian_theme ###
  67. set menu_color_normal=white/black
  68. set menu_color_highlight=black/light-gray
  69. ### END /etc/grub.d/05_debian_theme ###
  70.  
  71. ### BEGIN /etc/grub.d/10_linux ###
  72. if [ ${recordfail} != 1 ]; then
  73. if [ -e ${prefix}/gfxblacklist.txt ]; then
  74. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  75. if [ ${match} = 0 ]; then
  76. set linux_gfx_mode=keep
  77. else
  78. set linux_gfx_mode=text
  79. fi
  80. else
  81. set linux_gfx_mode=text
  82. fi
  83. else
  84. set linux_gfx_mode=keep
  85. fi
  86. else
  87. set linux_gfx_mode=text
  88. fi
  89. export linux_gfx_mode
  90. if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
  91. menuentry 'Ubuntu, with Linux 2.6.38-8-server' --class ubuntu --class gnu-linux --class gnu --class os {
  92. recordfail
  93. set gfxpayload=$linux_gfx_mode
  94. insmod part_msdos
  95. insmod ext2
  96. set root='(/dev/sda,msdos3)'
  97. search --no-floppy --fs-uuid --set=root 396ddbaa-1c65-4525-beff-778eeac487dd
  98. linux /vmlinuz-2.6.38-8-server root=UUID=13b2372b-00ee-4701-a687-e9acf5f176c1 ro quiet
  99. initrd /initrd.img-2.6.38-8-server
  100. }
  101. menuentry 'Ubuntu, with Linux 2.6.38-8-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
  102. recordfail
  103. set gfxpayload=$linux_gfx_mode
  104. insmod part_msdos
  105. insmod ext2
  106. set root='(/dev/sda,msdos3)'
  107. search --no-floppy --fs-uuid --set=root 396ddbaa-1c65-4525-beff-778eeac487dd
  108. echo 'Loading Linux 2.6.38-8-server ...'
  109. linux /vmlinuz-2.6.38-8-server root=UUID=13b2372b-00ee-4701-a687-e9acf5f176c1 ro single
  110. echo 'Loading initial ramdisk ...'
  111. initrd /initrd.img-2.6.38-8-server
  112. }
  113. ### END /etc/grub.d/10_linux ###
  114.  
  115. ### BEGIN /etc/grub.d/20_linux_xen ###
  116. ### END /etc/grub.d/20_linux_xen ###
  117.  
  118. ### BEGIN /etc/grub.d/20_memtest86+ ###
  119. menuentry "Memory test (memtest86+)" {
  120. insmod part_msdos
  121. insmod ext2
  122. set root='(/dev/sda,msdos3)'
  123. search --no-floppy --fs-uuid --set=root 396ddbaa-1c65-4525-beff-778eeac487dd
  124. linux16 /memtest86+.bin
  125. }
  126. menuentry "Memory test (memtest86+, serial console 115200)" {
  127. insmod part_msdos
  128. insmod ext2
  129. set root='(/dev/sda,msdos3)'
  130. search --no-floppy --fs-uuid --set=root 396ddbaa-1c65-4525-beff-778eeac487dd
  131. linux16 /memtest86+.bin console=ttyS0,115200n8
  132. }
  133. ### END /etc/grub.d/20_memtest86+ ###
  134.  
  135. ### BEGIN /etc/grub.d/30_os-prober ###
  136. menuentry "Windows Recovery Environment (loader) (on /dev/sda1)" --class windows --class os {
  137. insmod part_msdos
  138. insmod ntfs
  139. set root='(/dev/sda,msdos1)'
  140. search --no-floppy --fs-uuid --set=root 6C9810F49810BF10
  141. drivemap -s (hd0) ${root}
  142. chainloader +1
  143. }
  144. menuentry "Microsoft Windows XP Professional (on /dev/sda2)" --class windows --class os {
  145. insmod part_msdos
  146. insmod ntfs
  147. set root='(/dev/sda,msdos2)'
  148. search --no-floppy --fs-uuid --set=root 9A0049CB0049AED7
  149. drivemap -s (hd0) ${root}
  150. chainloader +1
  151. }
  152. ### END /etc/grub.d/30_os-prober ###
  153.  
  154. ### BEGIN /etc/grub.d/40_custom ###
  155. # This file provides an easy way to add custom menu entries. Simply type the
  156. # menu entries you want to add after this comment. Be careful not to change
  157. # the 'exec tail' line above.
  158. ### END /etc/grub.d/40_custom ###
  159.  
  160. ### BEGIN /etc/grub.d/41_custom ###
  161. if [ -f $prefix/custom.cfg ]; then
  162. source $prefix/custom.cfg;
  163. fi
  164. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment