Advertisement
Dinesh_Raja

grub.cfg

Jun 15th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.37 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.  
  15. if [ x"${feature_menuentry_id}" = xy ]; then
  16. menuentry_id_option="--id"
  17. else
  18. menuentry_id_option=""
  19. fi
  20.  
  21. export menuentry_id_option
  22.  
  23. if [ "${prev_saved_entry}" ]; then
  24. set saved_entry="${prev_saved_entry}"
  25. save_env saved_entry
  26. set prev_saved_entry=
  27. save_env prev_saved_entry
  28. set boot_once=true
  29. fi
  30.  
  31. function savedefault {
  32. if [ -z "${boot_once}" ]; then
  33. saved_entry="${chosen}"
  34. save_env saved_entry
  35. fi
  36. }
  37.  
  38. function recordfail {
  39. set recordfail=1
  40. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  41. }
  42.  
  43. function load_video {
  44. if [ x$feature_all_video_module = xy ]; then
  45. insmod all_video
  46. else
  47. insmod efi_gop
  48. insmod efi_uga
  49. insmod ieee1275_fb
  50. insmod vbe
  51. insmod vga
  52. insmod video_bochs
  53. insmod video_cirrus
  54. fi
  55. }
  56.  
  57. if [ x$feature_default_font_path = xy ] ; then
  58. font=unicode
  59. else
  60. insmod part_msdos
  61. insmod ext2
  62. set root='hd0,msdos11'
  63. if [ x$feature_platform_search_hint = xy ]; then
  64. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 bafd7a80-106f-4f89-b687-81c801bf7903
  65. else
  66. search --no-floppy --fs-uuid --set=root bafd7a80-106f-4f89-b687-81c801bf7903
  67. fi
  68. font="/usr/share/grub/unicode.pf2"
  69. fi
  70.  
  71. if loadfont $font ; then
  72. set gfxmode=auto
  73. load_video
  74. insmod gfxterm
  75. set locale_dir=$prefix/locale
  76. set lang=en_IN
  77. insmod gettext
  78. fi
  79. terminal_output gfxterm
  80. if [ "${recordfail}" = 1 ]; then
  81. set timeout=-1
  82. else
  83. set timeout=10
  84. fi
  85. ### END /etc/grub.d/00_header ###
  86.  
  87. ### BEGIN /etc/grub.d/05_debian_theme ###
  88. set menu_color_normal=white/black
  89. set menu_color_highlight=black/light-gray
  90. if background_color 44,0,30; then
  91. clear
  92. fi
  93. ### END /etc/grub.d/05_debian_theme ###
  94.  
  95. ### BEGIN /etc/grub.d/10_linux ###
  96. function gfxmode {
  97. set gfxpayload="${1}"
  98. if [ "${1}" = "keep" ]; then
  99. set vt_handoff=vt.handoff=7
  100. else
  101. set vt_handoff=
  102. fi
  103. }
  104. if [ "${recordfail}" != 1 ]; then
  105. if [ -e ${prefix}/gfxblacklist.txt ]; then
  106. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  107. if [ ${match} = 0 ]; then
  108. set linux_gfx_mode=keep
  109. else
  110. set linux_gfx_mode=text
  111. fi
  112. else
  113. set linux_gfx_mode=text
  114. fi
  115. else
  116. set linux_gfx_mode=keep
  117. fi
  118. else
  119. set linux_gfx_mode=text
  120. fi
  121. export linux_gfx_mode
  122. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-bafd7a80-106f-4f89-b687-81c801bf7903' {
  123. recordfail
  124. load_video
  125. gfxmode $linux_gfx_mode
  126. insmod gzio
  127. insmod part_msdos
  128. insmod ext2
  129. set root='hd0,msdos11'
  130. if [ x$feature_platform_search_hint = xy ]; then
  131. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 bafd7a80-106f-4f89-b687-81c801bf7903
  132. else
  133. search --no-floppy --fs-uuid --set=root bafd7a80-106f-4f89-b687-81c801bf7903
  134. fi
  135. linux /boot/vmlinuz-3.8.0-19-generic root=UUID=bafd7a80-106f-4f89-b687-81c801bf7903 ro quiet splash $vt_handoff
  136. initrd /boot/initrd.img-3.8.0-19-generic
  137. }
  138. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-bafd7a80-106f-4f89-b687-81c801bf7903' {
  139. menuentry 'Ubuntu, with Linux 3.8.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-advanced-bafd7a80-106f-4f89-b687-81c801bf7903' {
  140. recordfail
  141. load_video
  142. gfxmode $linux_gfx_mode
  143. insmod gzio
  144. insmod part_msdos
  145. insmod ext2
  146. set root='hd0,msdos11'
  147. if [ x$feature_platform_search_hint = xy ]; then
  148. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 bafd7a80-106f-4f89-b687-81c801bf7903
  149. else
  150. search --no-floppy --fs-uuid --set=root bafd7a80-106f-4f89-b687-81c801bf7903
  151. fi
  152. echo 'Loading Linux 3.8.0-19-generic ...'
  153. linux /boot/vmlinuz-3.8.0-19-generic root=UUID=bafd7a80-106f-4f89-b687-81c801bf7903 ro quiet splash $vt_handoff
  154. echo 'Loading initial ramdisk ...'
  155. initrd /boot/initrd.img-3.8.0-19-generic
  156. }
  157. menuentry 'Ubuntu, with Linux 3.8.0-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-recovery-bafd7a80-106f-4f89-b687-81c801bf7903' {
  158. recordfail
  159. load_video
  160. insmod gzio
  161. insmod part_msdos
  162. insmod ext2
  163. set root='hd0,msdos11'
  164. if [ x$feature_platform_search_hint = xy ]; then
  165. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 bafd7a80-106f-4f89-b687-81c801bf7903
  166. else
  167. search --no-floppy --fs-uuid --set=root bafd7a80-106f-4f89-b687-81c801bf7903
  168. fi
  169. echo 'Loading Linux 3.8.0-19-generic ...'
  170. linux /boot/vmlinuz-3.8.0-19-generic root=UUID=bafd7a80-106f-4f89-b687-81c801bf7903 ro recovery nomodeset
  171. echo 'Loading initial ramdisk ...'
  172. initrd /boot/initrd.img-3.8.0-19-generic
  173. }
  174. }
  175.  
  176. ### END /etc/grub.d/10_linux ###
  177.  
  178. ### BEGIN /etc/grub.d/20_linux_xen ###
  179.  
  180. ### END /etc/grub.d/20_linux_xen ###
  181.  
  182. ### BEGIN /etc/grub.d/20_memtest86+ ###
  183. menuentry "Memory test (memtest86+)" {
  184. insmod part_msdos
  185. insmod ext2
  186. set root='hd0,msdos11'
  187. if [ x$feature_platform_search_hint = xy ]; then
  188. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 bafd7a80-106f-4f89-b687-81c801bf7903
  189. else
  190. search --no-floppy --fs-uuid --set=root bafd7a80-106f-4f89-b687-81c801bf7903
  191. fi
  192. linux16 /boot/memtest86+.bin
  193. }
  194. menuentry "Memory test (memtest86+, serial console 115200)" {
  195. insmod part_msdos
  196. insmod ext2
  197. set root='hd0,msdos11'
  198. if [ x$feature_platform_search_hint = xy ]; then
  199. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 bafd7a80-106f-4f89-b687-81c801bf7903
  200. else
  201. search --no-floppy --fs-uuid --set=root bafd7a80-106f-4f89-b687-81c801bf7903
  202. fi
  203. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  204. }
  205. ### END /etc/grub.d/20_memtest86+ ###
  206.  
  207. ### BEGIN /etc/grub.d/30_os-prober ###
  208. menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-07DA-070F' {
  209. insmod part_msdos
  210. insmod fat
  211. set root='hd0,msdos1'
  212. if [ x$feature_platform_search_hint = xy ]; then
  213. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 07DA-070F
  214. else
  215. search --no-floppy --fs-uuid --set=root 07DA-070F
  216. fi
  217. chainloader +1
  218. }
  219. menuentry 'Labinix (7.3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-6d1c3df0-0665-4f23-a384-27948455e726' {
  220. insmod part_msdos
  221. insmod ext2
  222. set root='hd0,msdos10'
  223. if [ x$feature_platform_search_hint = xy ]; then
  224. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10 6d1c3df0-0665-4f23-a384-27948455e726
  225. else
  226. search --no-floppy --fs-uuid --set=root 6d1c3df0-0665-4f23-a384-27948455e726
  227. fi
  228. linux /boot/vmlinuz-3.8.1-lfs-7.3 root=/dev/sda10 ro
  229. }
  230. submenu 'Advanced options for Labinix (7.3)' $menuentry_id_option 'osprober-gnulinux-advanced-6d1c3df0-0665-4f23-a384-27948455e726' {
  231. menuentry 'GNU/Linux, Linux 3.8.1-lfs-7.3 (on /dev/sda10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.1-lfs-7.3--6d1c3df0-0665-4f23-a384-27948455e726' {
  232. insmod part_msdos
  233. insmod ext2
  234. set root='hd0,msdos10'
  235. if [ x$feature_platform_search_hint = xy ]; then
  236. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10 6d1c3df0-0665-4f23-a384-27948455e726
  237. else
  238. search --no-floppy --fs-uuid --set=root 6d1c3df0-0665-4f23-a384-27948455e726
  239. fi
  240. linux /boot/vmlinuz-3.8.1-lfs-7.3 root=/dev/sda10 ro
  241. }
  242. }
  243.  
  244. menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-B638F43438F3F0EB' {
  245. insmod part_msdos
  246. insmod ntfs
  247. set root='hd0,msdos2'
  248. if [ x$feature_platform_search_hint = xy ]; then
  249. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 B638F43438F3F0EB
  250. else
  251. search --no-floppy --fs-uuid --set=root B638F43438F3F0EB
  252. fi
  253. chainloader +1
  254. }
  255. menuentry 'Arch' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-33df8e99-5060-4018-957d-882f4589578f' {
  256. insmod part_msdos
  257. insmod ext2
  258. set root='hd0,msdos6'
  259. if [ x$feature_platform_search_hint = xy ]; then
  260. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 33df8e99-5060-4018-957d-882f4589578f
  261. else
  262. search --no-floppy --fs-uuid --set=root 33df8e99-5060-4018-957d-882f4589578f
  263. fi
  264. linux /boot/vmlinuz-linux root=UUID=33df8e99-5060-4018-957d-882f4589578f ro i915.i915_enable_rc6=0 i915.semaphores=1
  265. initrd /boot/initramfs-linux.img
  266. }
  267. submenu 'Advanced options for Arch' $menuentry_id_option 'osprober-gnulinux-advanced-33df8e99-5060-4018-957d-882f4589578f' {
  268. menuentry 'Cinnarch (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--33df8e99-5060-4018-957d-882f4589578f' {
  269. insmod part_msdos
  270. insmod ext2
  271. set root='hd0,msdos6'
  272. if [ x$feature_platform_search_hint = xy ]; then
  273. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 33df8e99-5060-4018-957d-882f4589578f
  274. else
  275. search --no-floppy --fs-uuid --set=root 33df8e99-5060-4018-957d-882f4589578f
  276. fi
  277. linux /boot/vmlinuz-linux root=UUID=33df8e99-5060-4018-957d-882f4589578f ro i915.i915_enable_rc6=0 i915.semaphores=1
  278. initrd /boot/initramfs-linux.img
  279. }
  280. menuentry 'Cinnarch - Fallback (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--33df8e99-5060-4018-957d-882f4589578f' {
  281. insmod part_msdos
  282. insmod ext2
  283. set root='hd0,msdos6'
  284. if [ x$feature_platform_search_hint = xy ]; then
  285. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 33df8e99-5060-4018-957d-882f4589578f
  286. else
  287. search --no-floppy --fs-uuid --set=root 33df8e99-5060-4018-957d-882f4589578f
  288. fi
  289. linux /boot/vmlinuz-linux root=UUID=33df8e99-5060-4018-957d-882f4589578f ro i915.i915_enable_rc6=0 i915.semaphores=1
  290. initrd /boot/initramfs-linux-fallback.img
  291. }
  292. }
  293.  
  294. ### END /etc/grub.d/30_os-prober ###
  295.  
  296. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  297. ### END /etc/grub.d/30_uefi-firmware ###
  298.  
  299. ### BEGIN /etc/grub.d/40_custom ###
  300. # This file provides an easy way to add custom menu entries. Simply type the
  301. # menu entries you want to add after this comment. Be careful not to change
  302. # the 'exec tail' line above.
  303. ### END /etc/grub.d/40_custom ###
  304.  
  305. ### BEGIN /etc/grub.d/41_custom ###
  306. if [ -f ${config_directory}/custom.cfg ]; then
  307. source ${config_directory}/custom.cfg
  308. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  309. source $prefix/custom.cfg;
  310. fi
  311. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement