daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Feb 3rd, 2015 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. if [ "${next_entry}" ] ; then
  14.    set default="${next_entry}"
  15.    set next_entry=
  16.    save_env next_entry
  17.    set boot_once=true
  18. else
  19.    set default="0"
  20. fi
  21.  
  22. if [ x"${feature_menuentry_id}" = xy ]; then
  23.   menuentry_id_option="--id"
  24. else
  25.   menuentry_id_option=""
  26. fi
  27.  
  28. export menuentry_id_option
  29.  
  30. if [ "${prev_saved_entry}" ]; then
  31.   set saved_entry="${prev_saved_entry}"
  32.   save_env saved_entry
  33.   set prev_saved_entry=
  34.   save_env prev_saved_entry
  35.   set boot_once=true
  36. fi
  37.  
  38. function savedefault {
  39.   if [ -z "${boot_once}" ]; then
  40.     saved_entry="${chosen}"
  41.     save_env saved_entry
  42.   fi
  43. }
  44. function recordfail {
  45.   set recordfail=1
  46.   if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  47. }
  48. function load_video {
  49.   if [ x$feature_all_video_module = xy ]; then
  50.     insmod all_video
  51.   else
  52.     insmod efi_gop
  53.     insmod efi_uga
  54.     insmod ieee1275_fb
  55.     insmod vbe
  56.     insmod vga
  57.     insmod video_bochs
  58.     insmod video_cirrus
  59.   fi
  60. }
  61.  
  62. serial --speed=9600 --unit=0 --word=8 --parity=no --stop=1
  63. terminal_input serial
  64. terminal_output serial
  65. if [ "${recordfail}" = 1 ] ; then
  66.   set timeout=0
  67. else
  68.   if [ x$feature_timeout_style = xy ] ; then
  69.     set timeout_style=hidden
  70.     set timeout=0
  71.   # Fallback hidden-timeout code in case the timeout_style feature is
  72.   # unavailable.
  73.   elif sleep --interruptible 0 ; then
  74.     set timeout=0
  75.   fi
  76. fi
  77. ### END /etc/grub.d/00_header ###
  78.  
  79. ### BEGIN /etc/grub.d/05_debian_theme ###
  80. set menu_color_normal=white/black
  81. set menu_color_highlight=black/light-gray
  82. if background_color 44,0,30,0; then
  83.   clear
  84. fi
  85. ### END /etc/grub.d/05_debian_theme ###
  86.  
  87. ### BEGIN /etc/grub.d/10_linux ###
  88. function gfxmode {
  89.         set gfxpayload="${1}"
  90.         if [ "${1}" = "keep" ]; then
  91.                 set vt_handoff=vt.handoff=7
  92.         else
  93.                 set vt_handoff=
  94.         fi
  95. }
  96. if [ "${recordfail}" != 1 ]; then
  97.   if [ -e ${prefix}/gfxblacklist.txt ]; then
  98.     if hwmatch ${prefix}/gfxblacklist.txt 3; then
  99.       if [ ${match} = 0 ]; then
  100.         set linux_gfx_mode=keep
  101.       else
  102.         set linux_gfx_mode=text
  103.       fi
  104.     else
  105.       set linux_gfx_mode=text
  106.     fi
  107.   else
  108.     set linux_gfx_mode=keep
  109.   fi
  110. else
  111.   set linux_gfx_mode=text
  112. fi
  113. export linux_gfx_mode
  114. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9f6b8b47-e45e-4522-8e15-5453b54381ff' {
  115.         recordfail
  116.         load_video
  117.         gfxmode $linux_gfx_mode
  118.         insmod gzio
  119.         insmod part_msdos
  120.         insmod ext2
  121.         set root='hd0,msdos1'
  122.         if [ x$feature_platform_search_hint = xy ]; then
  123.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  9f6b8b47-e45e-4522-8e15-5453b54381ff
  124.         else
  125.           search --no-floppy --fs-uuid --set=root 9f6b8b47-e45e-4522-8e15-5453b54381ff
  126.         fi
  127.         linux   /boot/vmlinuz-3.16.0-29-generic root=UUID=9f6b8b47-e45e-4522-8e15-5453b54381ff ro  console=tty1 console=ttyS0 earlyprintk=ttyS0 rootdelay=300
  128.         initrd  /boot/initrd.img-3.16.0-29-generic
  129. }
  130. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-9f6b8b47-e45e-4522-8e15-5453b54381ff' {
  131.         menuentry 'Ubuntu, with Linux 3.16.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-29-generic-advanced-9f6b8b47-e45e-4522-8e15-5453b54381ff' {
  132.                 recordfail
  133.                 load_video
  134.                 gfxmode $linux_gfx_mode
  135.                 insmod gzio
  136.                 insmod part_msdos
  137.                 insmod ext2
  138.                 set root='hd0,msdos1'
  139.                 if [ x$feature_platform_search_hint = xy ]; then
  140.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  9f6b8b47-e45e-4522-8e15-5453b54381ff
  141.                 else
  142.                   search --no-floppy --fs-uuid --set=root 9f6b8b47-e45e-4522-8e15-5453b54381ff
  143.                 fi
  144.                 echo    'Loading Linux 3.16.0-29-generic ...'
  145.                 linux   /boot/vmlinuz-3.16.0-29-generic root=UUID=9f6b8b47-e45e-4522-8e15-5453b54381ff ro  console=tty1 console=ttyS0 earlyprintk=ttyS0 rootdelay=300
  146.                 echo    'Loading initial ramdisk ...'
  147.                 initrd  /boot/initrd.img-3.16.0-29-generic
  148.         }
  149.         menuentry 'Ubuntu, with Linux 3.16.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-29-generic-recovery-9f6b8b47-e45e-4522-8e15-5453b54381ff' {
  150.                 recordfail
  151.                 load_video
  152.                 insmod gzio
  153.                 insmod part_msdos
  154.                 insmod ext2
  155.                 set root='hd0,msdos1'
  156.                 if [ x$feature_platform_search_hint = xy ]; then
  157.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  9f6b8b47-e45e-4522-8e15-5453b54381ff
  158.                 else
  159.                   search --no-floppy --fs-uuid --set=root 9f6b8b47-e45e-4522-8e15-5453b54381ff
  160.                 fi
  161.                 echo    'Loading Linux 3.16.0-29-generic ...'
  162.                 linux   /boot/vmlinuz-3.16.0-29-generic root=UUID=9f6b8b47-e45e-4522-8e15-5453b54381ff ro recovery nomodeset
  163.                 echo    'Loading initial ramdisk ...'
  164.                 initrd  /boot/initrd.img-3.16.0-29-generic
  165.         }
  166. }
  167.  
  168. ### END /etc/grub.d/10_linux ###
  169.  
  170. ### BEGIN /etc/grub.d/20_linux_xen ###
  171.  
  172. ### END /etc/grub.d/20_linux_xen ###
  173.  
  174. ### BEGIN /etc/grub.d/20_memtest86+ ###
  175. menuentry 'Memory test (memtest86+)' {
  176.         insmod part_msdos
  177.         insmod ext2
  178.         set root='hd0,msdos1'
  179.         if [ x$feature_platform_search_hint = xy ]; then
  180.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  9f6b8b47-e45e-4522-8e15-5453b54381ff
  181.         else
  182.           search --no-floppy --fs-uuid --set=root 9f6b8b47-e45e-4522-8e15-5453b54381ff
  183.         fi
  184.         knetbsd /boot/memtest86+.elf
  185. }
  186. menuentry 'Memory test (memtest86+, serial console 115200)' {
  187.         insmod part_msdos
  188.         insmod ext2
  189.         set root='hd0,msdos1'
  190.         if [ x$feature_platform_search_hint = xy ]; then
  191.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  9f6b8b47-e45e-4522-8e15-5453b54381ff
  192.         else
  193.           search --no-floppy --fs-uuid --set=root 9f6b8b47-e45e-4522-8e15-5453b54381ff
  194.         fi
  195.         linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  196. }
  197. ### END /etc/grub.d/20_memtest86+ ###
  198.  
  199. ### BEGIN /etc/grub.d/30_os-prober ###
  200. ### END /etc/grub.d/30_os-prober ###
  201.  
  202. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  203. ### END /etc/grub.d/30_uefi-firmware ###
  204.  
  205. ### BEGIN /etc/grub.d/40_custom ###
  206. # This file provides an easy way to add custom menu entries.  Simply type the
  207. # menu entries you want to add after this comment.  Be careful not to change
  208. # the 'exec tail' line above.
  209. ### END /etc/grub.d/40_custom ###
  210.  
  211. ### BEGIN /etc/grub.d/41_custom ###
  212. if [ -f  ${config_directory}/custom.cfg ]; then
  213.   source ${config_directory}/custom.cfg
  214. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  215.   source $prefix/custom.cfg;
  216. fi
  217. ### END /etc/grub.d/41_custom ###
RAW Paste Data
Top