Guest User

grub.cfg

a guest
Nov 13th, 2012
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 15.65 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,msdos6'
  63. if [ x$feature_platform_search_hint = xy ]; then
  64.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  b053d249-af2f-4b21-93d1-e266bab89568
  65. else
  66.   search --no-floppy --fs-uuid --set=root b053d249-af2f-4b21-93d1-e266bab89568
  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=ru_RU
  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 75,75,75; 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. if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
  123. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b053d249-af2f-4b21-93d1-e266bab89568' {
  124. recordfail
  125.         gfxmode $linux_gfx_mode
  126.         insmod gzio
  127.         insmod part_msdos
  128.         insmod ext2
  129.         set root='hd0,msdos6'
  130.         if [ x$feature_platform_search_hint = xy ]; then
  131.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  b053d249-af2f-4b21-93d1-e266bab89568
  132.         else
  133.           search --no-floppy --fs-uuid --set=root b053d249-af2f-4b21-93d1-e266bab89568
  134.         fi
  135.         linux   /boot/vmlinuz-3.5.0-18-generic root=UUID=b053d249-af2f-4b21-93d1-e266bab89568 ro   quiet splash $vt_handoff
  136.         initrd  /boot/initrd.img-3.5.0-18-generic
  137. }
  138. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-b053d249-af2f-4b21-93d1-e266bab89568' {
  139.         menuentry 'Ubuntu, with Linux 3.5.0-18-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-18-generic-advanced-b053d249-af2f-4b21-93d1-e266bab89568' {
  140.         recordfail
  141.                 gfxmode $linux_gfx_mode
  142.                 insmod gzio
  143.                 insmod part_msdos
  144.                 insmod ext2
  145.                 set root='hd0,msdos6'
  146.                 if [ x$feature_platform_search_hint = xy ]; then
  147.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  b053d249-af2f-4b21-93d1-e266bab89568
  148.                 else
  149.                   search --no-floppy --fs-uuid --set=root b053d249-af2f-4b21-93d1-e266bab89568
  150.                 fi
  151.                 echo    'Loading Linux 3.5.0-18-generic ...'
  152.                 linux   /boot/vmlinuz-3.5.0-18-generic root=UUID=b053d249-af2f-4b21-93d1-e266bab89568 ro   quiet splash $vt_handoff
  153.                 echo    'Loading initial ramdisk ...'
  154.                 initrd  /boot/initrd.img-3.5.0-18-generic
  155.         }
  156.         menuentry 'Ubuntu, with Linux 3.5.0-18-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-18-generic-recovery-b053d249-af2f-4b21-93d1-e266bab89568' {
  157.         recordfail
  158.                 insmod gzio
  159.                 insmod part_msdos
  160.                 insmod ext2
  161.                 set root='hd0,msdos6'
  162.                 if [ x$feature_platform_search_hint = xy ]; then
  163.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  b053d249-af2f-4b21-93d1-e266bab89568
  164.                 else
  165.                   search --no-floppy --fs-uuid --set=root b053d249-af2f-4b21-93d1-e266bab89568
  166.                 fi
  167.                 echo    'Loading Linux 3.5.0-18-generic ...'
  168.                 linux   /boot/vmlinuz-3.5.0-18-generic root=UUID=b053d249-af2f-4b21-93d1-e266bab89568 ro recovery nomodeset
  169.                 echo    'Loading initial ramdisk ...'
  170.                 initrd  /boot/initrd.img-3.5.0-18-generic
  171.         }
  172.         menuentry 'Ubuntu, with Linux 3.5.0-17-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-17-generic-advanced-b053d249-af2f-4b21-93d1-e266bab89568' {
  173.         recordfail
  174.                 gfxmode $linux_gfx_mode
  175.                 insmod gzio
  176.                 insmod part_msdos
  177.                 insmod ext2
  178.                 set root='hd0,msdos6'
  179.                 if [ x$feature_platform_search_hint = xy ]; then
  180.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  b053d249-af2f-4b21-93d1-e266bab89568
  181.                 else
  182.                   search --no-floppy --fs-uuid --set=root b053d249-af2f-4b21-93d1-e266bab89568
  183.                 fi
  184.                 echo    'Loading Linux 3.5.0-17-generic ...'
  185.                 linux   /boot/vmlinuz-3.5.0-17-generic root=UUID=b053d249-af2f-4b21-93d1-e266bab89568 ro   quiet splash $vt_handoff
  186.                 echo    'Loading initial ramdisk ...'
  187.                 initrd  /boot/initrd.img-3.5.0-17-generic
  188.         }
  189.         menuentry 'Ubuntu, with Linux 3.5.0-17-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-17-generic-recovery-b053d249-af2f-4b21-93d1-e266bab89568' {
  190.         recordfail
  191.                 insmod gzio
  192.                 insmod part_msdos
  193.                 insmod ext2
  194.                 set root='hd0,msdos6'
  195.                 if [ x$feature_platform_search_hint = xy ]; then
  196.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  b053d249-af2f-4b21-93d1-e266bab89568
  197.                 else
  198.                   search --no-floppy --fs-uuid --set=root b053d249-af2f-4b21-93d1-e266bab89568
  199.                 fi
  200.                 echo    'Loading Linux 3.5.0-17-generic ...'
  201.                 linux   /boot/vmlinuz-3.5.0-17-generic root=UUID=b053d249-af2f-4b21-93d1-e266bab89568 ro recovery nomodeset
  202.                 echo    'Loading initial ramdisk ...'
  203.                 initrd  /boot/initrd.img-3.5.0-17-generic
  204.         }
  205. }
  206.  
  207. ### END /etc/grub.d/10_linux ###
  208.  
  209. ### BEGIN /etc/grub.d/20_linux_xen ###
  210.  
  211. ### END /etc/grub.d/20_linux_xen ###
  212.  
  213. ### BEGIN /etc/grub.d/20_memtest86+ ###
  214. menuentry "Memory test (memtest86+)" {
  215.         insmod part_msdos
  216.         insmod ext2
  217.         set root='hd0,msdos6'
  218.         if [ x$feature_platform_search_hint = xy ]; then
  219.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  b053d249-af2f-4b21-93d1-e266bab89568
  220.         else
  221.           search --no-floppy --fs-uuid --set=root b053d249-af2f-4b21-93d1-e266bab89568
  222.         fi
  223.         linux16 /boot/memtest86+.bin
  224. }
  225. menuentry "Memory test (memtest86+, serial console 115200)" {
  226.         insmod part_msdos
  227.         insmod ext2
  228.         set root='hd0,msdos6'
  229.         if [ x$feature_platform_search_hint = xy ]; then
  230.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  b053d249-af2f-4b21-93d1-e266bab89568
  231.         else
  232.           search --no-floppy --fs-uuid --set=root b053d249-af2f-4b21-93d1-e266bab89568
  233.         fi
  234.         linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  235. }
  236. ### END /etc/grub.d/20_memtest86+ ###
  237.  
  238. ### BEGIN /etc/grub.d/30_os-prober ###
  239. menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-CC70378A703779F2' {
  240.         insmod part_msdos
  241.         insmod ntfs
  242.         set root='hd0,msdos2'
  243.         if [ x$feature_platform_search_hint = xy ]; then
  244.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2'  CC70378A703779F2
  245.         else
  246.           search --no-floppy --fs-uuid --set=root CC70378A703779F2
  247.         fi
  248.         chainloader +1
  249. }
  250. menuentry 'Ubuntu 12.10 (12.10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-a78cdb6c-565b-4590-b787-12533861c3e5' {
  251.         insmod part_msdos
  252.         insmod ext2
  253.         set root='hd1,msdos1'
  254.         if [ x$feature_platform_search_hint = xy ]; then
  255.           search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  a78cdb6c-565b-4590-b787-12533861c3e5
  256.         else
  257.           search --no-floppy --fs-uuid --set=root a78cdb6c-565b-4590-b787-12533861c3e5
  258.         fi
  259.         linux /boot/vmlinuz-3.5.0-17-generic root=UUID=a78cdb6c-565b-4590-b787-12533861c3e5 ro quiet splash $vt_handoff
  260.         initrd /boot/initrd.img-3.5.0-17-generic
  261. }
  262. submenu 'Advanced options for Ubuntu 12.10 (12.10)' $menuentry_id_option 'osprober-gnulinux-advanced-a78cdb6c-565b-4590-b787-12533861c3e5' {
  263.         menuentry 'Ubuntu (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-17-generic--a78cdb6c-565b-4590-b787-12533861c3e5' {
  264.                 insmod part_msdos
  265.                 insmod ext2
  266.                 set root='hd1,msdos1'
  267.                 if [ x$feature_platform_search_hint = xy ]; then
  268.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  a78cdb6c-565b-4590-b787-12533861c3e5
  269.                 else
  270.                   search --no-floppy --fs-uuid --set=root a78cdb6c-565b-4590-b787-12533861c3e5
  271.                 fi
  272.                 linux /boot/vmlinuz-3.5.0-17-generic root=UUID=a78cdb6c-565b-4590-b787-12533861c3e5 ro quiet splash $vt_handoff
  273.                 initrd /boot/initrd.img-3.5.0-17-generic
  274.         }
  275.         menuentry 'Ubuntu, with Linux 3.5.0-17-generic (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-17-generic--a78cdb6c-565b-4590-b787-12533861c3e5' {
  276.                 insmod part_msdos
  277.                 insmod ext2
  278.                 set root='hd1,msdos1'
  279.                 if [ x$feature_platform_search_hint = xy ]; then
  280.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  a78cdb6c-565b-4590-b787-12533861c3e5
  281.                 else
  282.                   search --no-floppy --fs-uuid --set=root a78cdb6c-565b-4590-b787-12533861c3e5
  283.                 fi
  284.                 linux /boot/vmlinuz-3.5.0-17-generic root=UUID=a78cdb6c-565b-4590-b787-12533861c3e5 ro quiet splash $vt_handoff
  285.                 initrd /boot/initrd.img-3.5.0-17-generic
  286.         }
  287.         menuentry 'Ubuntu, with Linux 3.5.0-17-generic (recovery mode) (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-17-generic-root=UUID=a78cdb6c-565b-4590-b787-12533861c3e5 ro recovery nomodeset-a78cdb6c-565b-4590-b787-12533861c3e5' {
  288.                 insmod part_msdos
  289.                 insmod ext2
  290.                 set root='hd1,msdos1'
  291.                 if [ x$feature_platform_search_hint = xy ]; then
  292.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  a78cdb6c-565b-4590-b787-12533861c3e5
  293.                 else
  294.                   search --no-floppy --fs-uuid --set=root a78cdb6c-565b-4590-b787-12533861c3e5
  295.                 fi
  296.                 linux /boot/vmlinuz-3.5.0-17-generic root=UUID=a78cdb6c-565b-4590-b787-12533861c3e5 ro recovery nomodeset
  297.                 initrd /boot/initrd.img-3.5.0-17-generic
  298.         }
  299. }
  300. menuentry 'Ubuntu test' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-a78cdb6c-565b-4590-b787-12533861c3e5' {
  301.         insmod normal
  302.         normal
  303.         set root='hd1,msdos1'
  304.         if [ x$feature_platform_search_hint = xy ]; then
  305.           search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  a78cdb6c-565b-4590-b787-12533861c3e5
  306.         else
  307.           search --no-floppy --fs-uuid --set=root a78cdb6c-565b-4590-b787-12533861c3e5
  308.         fi
  309.         linux /boot/vmlinuz-3.5.0-17-generic root=UUID=a78cdb6c-565b-4590-b787-12533861c3e5 ro quiet splash $vt_handoff
  310.         initrd /boot/initrd.img-3.5.0-17-generic
  311. }
  312.  
  313. menuentry 'Ubuntu 12.10 (12.10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-a78cdb6c-565b-4590-b787-12533861c3e5' {
  314.         insmod normal
  315.         normal
  316.         insmod part_msdos
  317.         insmod ext2
  318.         set root='hd1,msdos1'
  319.         if [ x$feature_platform_search_hint = xy ]; then
  320.           search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  a78cdb6c-565b-4590-b787-12533861c3e5
  321.         else
  322.           search --no-floppy --fs-uuid --set=root a78cdb6c-565b-4590-b787-12533861c3e5
  323.         fi
  324.         linux /boot/vmlinuz-3.5.0-17-generic root=UUID=a78cdb6c-565b-4590-b787-12533861c3e5 ro quiet splash $vt_handoff
  325.         initrd /boot/initrd.img-3.5.0-17-generic
  326. }
  327.  
  328. ### END /etc/grub.d/30_os-prober ###
  329.  
  330. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  331. ### END /etc/grub.d/30_uefi-firmware ###
  332.  
  333. ### BEGIN /etc/grub.d/40_custom ###
  334. # This file provides an easy way to add custom menu entries.  Simply type the
  335. # menu entries you want to add after this comment.  Be careful not to change
  336. # the 'exec tail' line above.
  337. ### END /etc/grub.d/40_custom ###
  338.  
  339. ### BEGIN /etc/grub.d/41_custom ###
  340. if [ -f  ${config_directory}/custom.cfg ]; then
  341.   source ${config_directory}/custom.cfg
  342. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  343.   source $prefix/custom.cfg;
  344. fi
  345. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment