Advertisement
Guest User

grub.cfg (updated)

a guest
Dec 18th, 2013
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.21 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,msdos6)'
  44. search --no-floppy --fs-uuid --set=root 54adf370-2238-4c61-aab7-c6766fee4001
  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,msdos6)'
  52. search --no-floppy --fs-uuid --set=root 54adf370-2238-4c61-aab7-c6766fee4001
  53. set locale_dir=($root)/boot/grub/locale
  54. set lang=en_IN
  55. insmod gettext
  56. fi
  57. terminal_output gfxterm
  58. if [ "${recordfail}" = 1 ]; then
  59. set timeout=5
  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. set menu_color_normal=white/black
  67. set menu_color_highlight=black/light-gray
  68. if background_color 44,0,30; then
  69. clear
  70. fi
  71. ### END /etc/grub.d/05_debian_theme ###
  72.  
  73. ### BEGIN /etc/grub.d/10_linux ###
  74. if [ ! -d /boot/efi ]; then
  75. if hwmatch /boot/grub/nomodesetsystemlist.txt 3; then
  76. if [ ${match} != 0 ]; then
  77. set nomodeset="nomodeset"
  78. fi
  79. fi
  80. fi
  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.2.0-57-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,msdos6)'
  115. search --no-floppy --fs-uuid --set=root 54adf370-2238-4c61-aab7-c6766fee4001
  116. linux /boot/vmlinuz-3.2.0-57-generic root=UUID=54adf370-2238-4c61-aab7-c6766fee4001 ro i915.modeset=1 quiet splash $vt_handoff $nomodeset
  117. initrd /boot/initrd.img-3.2.0-57-generic
  118. }
  119. menuentry 'Ubuntu, with Linux 3.2.0-57-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,msdos6)'
  125. search --no-floppy --fs-uuid --set=root 54adf370-2238-4c61-aab7-c6766fee4001
  126. echo 'Loading Linux 3.2.0-57-generic ...'
  127. linux /boot/vmlinuz-3.2.0-57-generic root=UUID=54adf370-2238-4c61-aab7-c6766fee4001 ro recovery nomodeset
  128. echo 'Loading initial ramdisk ...'
  129. initrd /boot/initrd.img-3.2.0-57-generic
  130. }
  131. ### END /etc/grub.d/10_linux ###
  132.  
  133. ### BEGIN /etc/grub.d/20_linux_xen ###
  134. ### END /etc/grub.d/20_linux_xen ###
  135.  
  136. ### BEGIN /etc/grub.d/20_memtest86+ ###
  137. ### END /etc/grub.d/20_memtest86+ ###
  138.  
  139. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  140. ### END /etc/grub.d/30_uefi-firmware ###
  141.  
  142. ### BEGIN /etc/grub.d/40_custom ###
  143. # This file provides an easy way to add custom menu entries. Simply type the
  144. # menu entries you want to add after this comment. Be careful not to change
  145. # the 'exec tail' line above.
  146. menuentry 'Restore System to Factory State' {
  147. insmod chain
  148. insmod ntfs
  149. set root=(hd0,2)
  150. chainloader +1
  151. }
  152. ### END /etc/grub.d/40_custom ###
  153.  
  154. ### BEGIN /etc/grub.d/99_ubuntu_recovery ###
  155. menuentry "Recovery" {
  156. search --no-floppy --hint '(hd0,msdos4)' --set --fs-uuid 0FB0-F213
  157. if [ -s /boot/grub/common.cfg ]; then
  158. source /boot/grub/common.cfg
  159. else
  160. set options="boot=casper automatic-ubiquity noprompt quiet splash"
  161. fi
  162.  
  163. if [ ! -d ($root)/boot/efi ]; then
  164. if [ -f ${prefix}/nomodesetlist.txt ]; then
  165. if hwmatch ${prefix}/nomodesetlist.txt 3; then
  166. if [ ${match} != 0 ]; then
  167. set options="nomodeset $options"
  168. fi
  169. fi
  170. fi
  171. fi
  172.  
  173. #Support starting from a loopback mount (Only support ubuntu.iso for filename)
  174. if [ -f /ubuntu.iso ]; then
  175. loopback loop /ubuntu.iso
  176. set root=(loop)
  177. set options="$options iso-scan/filename=/ubuntu.iso"
  178. fi
  179. if [ -n "${lang}" ]; then
  180. set options="$options locale=$lang"
  181. fi
  182.  
  183. linux /casper/vmlinuz ubuntu-recovery/recovery_type=hdd $options
  184. initrd /casper/initrd.lz
  185. }
  186. ### END /etc/grub.d/99_ubuntu_recovery ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement