Advertisement
Guest User

grub-mkconfig

a guest
Mar 21st, 2012
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. ulisses@ulisses-Troya:~$ sudo grub-mkconfig
  2. Generating grub.cfg ...
  3. #
  4. # DO NOT EDIT THIS FILE
  5. #
  6. # It is automatically generated by grub-mkconfig using templates
  7. # from /etc/grub.d and settings from /etc/default/grub
  8. #
  9.  
  10. ### BEGIN /etc/grub.d/00_header ###
  11. if [ -s $prefix/grubenv ]; then
  12. set have_grubenv=true
  13. load_env
  14. fi
  15. set default="0"
  16. if [ "${prev_saved_entry}" ]; then
  17. set saved_entry="${prev_saved_entry}"
  18. save_env saved_entry
  19. set prev_saved_entry=
  20. save_env prev_saved_entry
  21. set boot_once=true
  22. fi
  23.  
  24. function savedefault {
  25. if [ -z "${boot_once}" ]; then
  26. saved_entry="${chosen}"
  27. save_env saved_entry
  28. fi
  29. }
  30.  
  31. function recordfail {
  32. set recordfail=1
  33. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  34. }
  35.  
  36. function load_video {
  37. insmod vbe
  38. insmod vga
  39. insmod video_bochs
  40. insmod video_cirrus
  41. }
  42.  
  43. insmod part_msdos
  44. insmod ext2
  45. set root='(hd1,msdos1)'
  46. search --no-floppy --fs-uuid --set=root 22ec7a81-687c-4b4a-9d0e-0c55db388d4e
  47. if loadfont /usr/share/grub/unicode.pf2 ; then
  48. set gfxmode=auto
  49. load_video
  50. insmod gfxterm
  51. insmod part_msdos
  52. insmod ext2
  53. set root='(hd1,msdos1)'
  54. search --no-floppy --fs-uuid --set=root 22ec7a81-687c-4b4a-9d0e-0c55db388d4e
  55. set locale_dir=($root)/boot/grub/locale
  56. set lang=es_ES
  57. insmod gettext
  58. fi
  59. terminal_output gfxterm
  60. if [ "${recordfail}" = 1 ]; then
  61. set timeout=-1
  62. else
  63. set timeout=10
  64. fi
  65. ### END /etc/grub.d/00_header ###
  66.  
  67. ### BEGIN /etc/grub.d/05_debian_theme ###
  68. set menu_color_normal=white/black
  69. set menu_color_highlight=black/light-gray
  70. if background_color 44,0,30; then
  71. clear
  72. fi
  73. ### END /etc/grub.d/05_debian_theme ###
  74.  
  75. ### BEGIN /etc/grub.d/10_linux ###
  76. if [ ${recordfail} != 1 ]; then
  77. if [ -e ${prefix}/gfxblacklist.txt ]; then
  78. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  79. if [ ${match} = 0 ]; then
  80. set linux_gfx_mode=keep
  81. else
  82. set linux_gfx_mode=text
  83. fi
  84. else
  85. set linux_gfx_mode=text
  86. fi
  87. else
  88. set linux_gfx_mode=keep
  89. fi
  90. else
  91. set linux_gfx_mode=text
  92. fi
  93. export linux_gfx_mode
  94. if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
  95. Found linux image: /boot/vmlinuz-3.0.0-12-generic
  96. Found initrd image: /boot/initrd.img-3.0.0-12-generic
  97. menuentry 'Ubuntu, con Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
  98. recordfail
  99. set gfxpayload=$linux_gfx_mode
  100. insmod gzio
  101. insmod part_msdos
  102. insmod ext2
  103. set root='(hd1,msdos1)'
  104. search --no-floppy --fs-uuid --set=root 22ec7a81-687c-4b4a-9d0e-0c55db388d4e
  105. linux /boot/vmlinuz-3.0.0-12-generic root=UUID=22ec7a81-687c-4b4a-9d0e-0c55db388d4e ro quiet splash vt.handoff=7
  106. initrd /boot/initrd.img-3.0.0-12-generic
  107. }
  108. menuentry 'Ubuntu, con Linux 3.0.0-12-generic (modo recuperación)' --class ubuntu --class gnu-linux --class gnu --class os {
  109. recordfail
  110. insmod gzio
  111. insmod part_msdos
  112. insmod ext2
  113. set root='(hd1,msdos1)'
  114. search --no-floppy --fs-uuid --set=root 22ec7a81-687c-4b4a-9d0e-0c55db388d4e
  115. echo 'Cargando Linux 3.0.0-12-generic ...'
  116. linux /boot/vmlinuz-3.0.0-12-generic root=UUID=22ec7a81-687c-4b4a-9d0e-0c55db388d4e ro recovery nomodeset
  117. echo 'Cargando el disco RAM inicial...'
  118. initrd /boot/initrd.img-3.0.0-12-generic
  119. }
  120. ### END /etc/grub.d/10_linux ###
  121.  
  122. ### BEGIN /etc/grub.d/20_linux_xen ###
  123. ### END /etc/grub.d/20_linux_xen ###
  124.  
  125. ### BEGIN /etc/grub.d/20_memtest86+ ###
  126. Found memtest86+ image: /boot/memtest86+.bin
  127. menuentry "Memory test (memtest86+)" {
  128. insmod part_msdos
  129. insmod ext2
  130. set root='(hd1,msdos1)'
  131. search --no-floppy --fs-uuid --set=root 22ec7a81-687c-4b4a-9d0e-0c55db388d4e
  132. linux16 /boot/memtest86+.bin
  133. }
  134. menuentry "Memory test (memtest86+, serial console 115200)" {
  135. insmod part_msdos
  136. insmod ext2
  137. set root='(hd1,msdos1)'
  138. search --no-floppy --fs-uuid --set=root 22ec7a81-687c-4b4a-9d0e-0c55db388d4e
  139. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  140. }
  141. ### END /etc/grub.d/20_memtest86+ ###
  142.  
  143. ### BEGIN /etc/grub.d/30_os-prober ###
  144. Found Windows 7 (loader) on /dev/sda1
  145. menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
  146. insmod part_msdos
  147. insmod ntfs
  148. set root='(hd0,msdos1)'
  149. search --no-floppy --fs-uuid --set=root 30242B8D242B54DE
  150. chainloader +1
  151. }
  152. Found Windows Recovery Environment (loader) on /dev/sda4
  153. menuentry "Windows Recovery Environment (loader) (on /dev/sda4)" --class windows --class os {
  154. insmod part_msdos
  155. insmod ntfs
  156. set root='(hd0,msdos4)'
  157. search --no-floppy --fs-uuid --set=root 887605DC7605CC3E
  158. drivemap -s (hd0) ${root}
  159. chainloader +1
  160. }
  161. Found Slackware Linux on /dev/sdb7
  162. menuentry "Slackware Linux (on /dev/sdb7)" --class gnu-linux --class gnu --class os {
  163. insmod part_msdos
  164. insmod ext2
  165. set root='(hd1,msdos7)'
  166. search --no-floppy --fs-uuid --set=root c7a8999c-e2ed-4913-ac14-7106feb6e266
  167. linux /boot/vmlinuz root=/dev/sdb7
  168. }
  169. menuentry "Slackware Linux (on /dev/sdb7)" --class gnu-linux --class gnu --class os {
  170. insmod part_msdos
  171. insmod ext2
  172. set root='(hd1,msdos7)'
  173. search --no-floppy --fs-uuid --set=root c7a8999c-e2ed-4913-ac14-7106feb6e266
  174. linux /boot/vmlinuz root=/dev/sdb7
  175. }
  176. ### END /etc/grub.d/30_os-prober ###
  177.  
  178. ### BEGIN /etc/grub.d/40_custom ###
  179. # This file provides an easy way to add custom menu entries. Simply type the
  180. # menu entries you want to add after this comment. Be careful not to change
  181. # the 'exec tail' line above.
  182. ### END /etc/grub.d/40_custom ###
  183.  
  184. ### BEGIN /etc/grub.d/41_custom ###
  185. if [ -f $prefix/custom.cfg ]; then
  186. source $prefix/custom.cfg;
  187. fi
  188. ### END /etc/grub.d/41_custom ###
  189. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement