Guest User

grub.cfg

a guest
Jan 31st, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.01 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,msdos5'
  63. if [ x$feature_platform_search_hint = xy ]; then
  64.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  47a490e6-2e45-46ec-9d0f-35dd50a64ae8
  65. else
  66.   search --no-floppy --fs-uuid --set=root 47a490e6-2e45-46ec-9d0f-35dd50a64ae8
  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=0
  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. #set_background_image "images/tile.png";
  91.  
  92. set menu_color_normal=white/black
  93. set menu_color_highlight=black/light-gray
  94. if background_color 0,0,0; then
  95.   clear
  96. fi
  97. ### END /etc/grub.d/05_debian_theme ###
  98.  
  99. ### BEGIN /etc/grub.d/05_password ###
  100. set superusers="dima"
  101. password_pbkdf2 dima grub.pbkdf2.sha512.10000.8AE2BACFA8B9F1DCE2487CAE5B48208538B730A4B0B8B88ACDA05F91D60991E0977EE669AABA4025358520F7E964FC1CC2B23C7EFEAABF6F3D86C5E3C9108334.A4DFEB349D003E81C5CEC0CB8C5A43F9F80EF2853D581238DA92CF89DC0646FE1298356BF1E880AD35BF7A6B230243FCE7B9838816B101EB9989CCA903A0EEF4
  102. ### END /etc/grub.d/05_password ###
  103.  
  104. ### BEGIN /etc/grub.d/10_linux ###
  105. function gfxmode {
  106.         set gfxpayload="${1}"
  107.         if [ "${1}" = "keep" ]; then
  108.                 set vt_handoff=vt.handoff=7
  109.         else
  110.                 set vt_handoff=
  111.         fi
  112. }
  113. if [ "${recordfail}" != 1 ]; then
  114.   if [ -e ${prefix}/gfxblacklist.txt ]; then
  115.     if hwmatch ${prefix}/gfxblacklist.txt 3; then
  116.       if [ ${match} = 0 ]; then
  117.         set linux_gfx_mode=keep
  118.       else
  119.         set linux_gfx_mode=text
  120.       fi
  121.     else
  122.       set linux_gfx_mode=text
  123.     fi
  124.   else
  125.     set linux_gfx_mode=keep
  126.   fi
  127. else
  128.   set linux_gfx_mode=text
  129. fi
  130. export linux_gfx_mode
  131. menuentry 'Kubuntu GNU/Linux' --class kubuntu --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-47a490e6-2e45-46ec-9d0f-35dd50a64ae8' {
  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  ec458276-3277-45e6-9f1e-8ec084c6c88d
  141.         else
  142.           search --no-floppy --fs-uuid --set=root ec458276-3277-45e6-9f1e-8ec084c6c88d
  143.         fi
  144.         linux   /vmlinuz-3.8.7-030807-generic root=UUID=47a490e6-2e45-46ec-9d0f-35dd50a64ae8 ro   quiet splash ipv6.disable=1 $vt_handoff
  145.         initrd  /initrd.img-3.8.7-030807-generic
  146. }
  147. submenu 'Дополнительные параметры для Kubuntu GNU/Linux' $menuentry_id_option 'gnulinux-advanced-47a490e6-2e45-46ec-9d0f-35dd50a64ae8' {
  148.         menuentry 'Kubuntu GNU/Linux, с Linux 3.8.7-030807-generic' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.7-030807-generic-advanced-47a490e6-2e45-46ec-9d0f-35dd50a64ae8' {
  149.         recordfail
  150.                 load_video
  151.                 gfxmode $linux_gfx_mode
  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  ec458276-3277-45e6-9f1e-8ec084c6c88d
  158.                 else
  159.                   search --no-floppy --fs-uuid --set=root ec458276-3277-45e6-9f1e-8ec084c6c88d
  160.                 fi
  161.                 echo    'Загружается Linux 3.8.7-030807-generic …'
  162.                 linux   /vmlinuz-3.8.7-030807-generic root=UUID=47a490e6-2e45-46ec-9d0f-35dd50a64ae8 ro   quiet splash ipv6.disable=1 $vt_handoff
  163.                 echo    'Загружается начальный виртуальный диск …'
  164.                 initrd  /initrd.img-3.8.7-030807-generic
  165.         }
  166.         menuentry 'Kubuntu GNU/Linux, с Linux 3.8.7-030807-generic (режим восстановления)' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.7-030807-generic-recovery-47a490e6-2e45-46ec-9d0f-35dd50a64ae8' {
  167.         recordfail
  168.                 load_video
  169.                 insmod gzio
  170.                 insmod part_msdos
  171.                 insmod ext2
  172.                 set root='hd0,msdos1'
  173.                 if [ x$feature_platform_search_hint = xy ]; then
  174.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ec458276-3277-45e6-9f1e-8ec084c6c88d
  175.                 else
  176.                   search --no-floppy --fs-uuid --set=root ec458276-3277-45e6-9f1e-8ec084c6c88d
  177.                 fi
  178.                 echo    'Загружается Linux 3.8.7-030807-generic …'
  179.                 linux   /vmlinuz-3.8.7-030807-generic root=UUID=47a490e6-2e45-46ec-9d0f-35dd50a64ae8 ro recovery nomodeset
  180.                 echo    'Загружается начальный виртуальный диск …'
  181.                 initrd  /initrd.img-3.8.7-030807-generic
  182.         }
  183. }
  184.  
  185. ### END /etc/grub.d/10_linux ###
  186.  
  187. ### BEGIN /etc/grub.d/20_linux_xen ###
  188.  
  189. ### END /etc/grub.d/20_linux_xen ###
  190.  
  191. ### BEGIN /etc/grub.d/20_memtest86+ ###
  192. menuentry 'Memory test (memtest86+)' {
  193.         insmod part_msdos
  194.         insmod ext2
  195.         set root='hd0,msdos1'
  196.         if [ x$feature_platform_search_hint = xy ]; then
  197.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ec458276-3277-45e6-9f1e-8ec084c6c88d
  198.         else
  199.           search --no-floppy --fs-uuid --set=root ec458276-3277-45e6-9f1e-8ec084c6c88d
  200.         fi
  201.         linux16 /memtest86+.bin
  202. }
  203. menuentry 'Memory test (memtest86+, serial console 115200)' {
  204.         insmod part_msdos
  205.         insmod ext2
  206.         set root='hd0,msdos1'
  207.         if [ x$feature_platform_search_hint = xy ]; then
  208.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ec458276-3277-45e6-9f1e-8ec084c6c88d
  209.         else
  210.           search --no-floppy --fs-uuid --set=root ec458276-3277-45e6-9f1e-8ec084c6c88d
  211.         fi
  212.         linux16 /memtest86+.bin console=ttyS0,115200n8
  213. }
  214. ### END /etc/grub.d/20_memtest86+ ###
  215.  
  216. ### BEGIN /etc/grub.d/30_os-prober ###
  217. if [ "x${timeout}" != "x-1" ]; then
  218.   if keystatus; then
  219.     if keystatus --shift; then
  220.       set timeout=-1
  221.     else
  222.       set timeout=0
  223.     fi
  224.   else
  225.     if sleep --interruptible 3 ; then
  226.       set timeout=0
  227.     fi
  228.   fi
  229. fi
  230. ### END /etc/grub.d/30_os-prober ###
  231.  
  232. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  233. ### END /etc/grub.d/30_uefi-firmware ###
  234.  
  235. ### BEGIN /etc/grub.d/40_custom ###
  236. # This file provides an easy way to add custom menu entries.  Simply type the
  237. # menu entries you want to add after this comment.  Be careful not to change
  238. # the 'exec tail' line above.
  239. ### END /etc/grub.d/40_custom ###
  240.  
  241. ### BEGIN /etc/grub.d/41_custom ###
  242. if [ -f  ${config_directory}/custom.cfg ]; then
  243.   source ${config_directory}/custom.cfg
  244. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  245.   source $prefix/custom.cfg;
  246. fi
  247. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment