Advertisement
Guest User

Untitled

a guest
Jan 14th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 13.35 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. 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. if [ x$feature_default_font_path = xy ] ; then
  63.    font=unicode
  64. else
  65. insmod part_gpt
  66. insmod ext2
  67. set root='hd0,gpt5'
  68. if [ x$feature_platform_search_hint = xy ]; then
  69.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  78cc8ade-c36b-4014-b646-5bac48afc5e4
  70. else
  71.   search --no-floppy --fs-uuid --set=root 78cc8ade-c36b-4014-b646-5bac48afc5e4
  72. fi
  73.     font="/usr/share/grub/unicode.pf2"
  74. fi
  75.  
  76. if loadfont $font ; then
  77.   set gfxmode=auto
  78.   load_video
  79.   insmod gfxterm
  80.   set locale_dir=$prefix/locale
  81.   set lang=en_US
  82.   insmod gettext
  83. fi
  84. terminal_output gfxterm
  85. if [ "${recordfail}" = 1 ] ; then
  86.   set timeout=-1
  87. else
  88.   if [ x$feature_timeout_style = xy ] ; then
  89.     set timeout_style=menu
  90.     set timeout=10
  91.   # Fallback normal timeout code in case the timeout_style feature is
  92.   # unavailable.
  93.   else
  94.     set timeout=10
  95.   fi
  96. fi
  97. ### END /etc/grub.d/00_header ###
  98.  
  99. ### BEGIN /etc/grub.d/05_debian_theme ###
  100. set menu_color_normal=white/black
  101. set menu_color_highlight=black/light-gray
  102. #set_background_image "images/tile.png";
  103.  
  104. set menu_color_normal=white/black
  105. set menu_color_highlight=black/light-gray
  106. if background_color 0,0,0; then
  107.   clear
  108. fi
  109. ### END /etc/grub.d/05_debian_theme ###
  110.  
  111. ### BEGIN /etc/grub.d/10_linux ###
  112. function gfxmode {
  113.     set gfxpayload="${1}"
  114.     if [ "${1}" = "keep" ]; then
  115.         set vt_handoff=vt.handoff=7
  116.     else
  117.         set vt_handoff=
  118.     fi
  119. }
  120. if [ "${recordfail}" != 1 ]; then
  121.   if [ -e ${prefix}/gfxblacklist.txt ]; then
  122.     if hwmatch ${prefix}/gfxblacklist.txt 3; then
  123.       if [ ${match} = 0 ]; then
  124.         set linux_gfx_mode=keep
  125.       else
  126.         set linux_gfx_mode=text
  127.       fi
  128.     else
  129.       set linux_gfx_mode=text
  130.     fi
  131.   else
  132.     set linux_gfx_mode=keep
  133.   fi
  134. else
  135.   set linux_gfx_mode=text
  136. fi
  137. export linux_gfx_mode
  138. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-78cc8ade-c36b-4014-b646-5bac48afc5e4' {
  139.     recordfail
  140.     load_video
  141.     gfxmode $linux_gfx_mode
  142.     insmod gzio
  143.     insmod part_gpt
  144.     insmod ext2
  145.     set root='hd0,gpt5'
  146.     if [ x$feature_platform_search_hint = xy ]; then
  147.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  78cc8ade-c36b-4014-b646-5bac48afc5e4
  148.     else
  149.       search --no-floppy --fs-uuid --set=root 78cc8ade-c36b-4014-b646-5bac48afc5e4
  150.     fi
  151.     linux   /boot/vmlinuz-3.16.0-24-generic.efi.signed root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro  quiet splash $vt_handoff
  152.     initrd  /boot/initrd.img-3.16.0-24-generic
  153. }
  154. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-78cc8ade-c36b-4014-b646-5bac48afc5e4' {
  155.     menuentry 'Ubuntu, with Linux 3.16.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-24-generic-advanced-78cc8ade-c36b-4014-b646-5bac48afc5e4' {
  156.         recordfail
  157.         load_video
  158.         gfxmode $linux_gfx_mode
  159.         insmod gzio
  160.         insmod part_gpt
  161.         insmod ext2
  162.         set root='hd0,gpt5'
  163.         if [ x$feature_platform_search_hint = xy ]; then
  164.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  78cc8ade-c36b-4014-b646-5bac48afc5e4
  165.         else
  166.           search --no-floppy --fs-uuid --set=root 78cc8ade-c36b-4014-b646-5bac48afc5e4
  167.         fi
  168.         echo    'Loading Linux 3.16.0-24-generic ...'
  169.         linux   /boot/vmlinuz-3.16.0-24-generic.efi.signed root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro  quiet splash $vt_handoff
  170.         echo    'Loading initial ramdisk ...'
  171.         initrd  /boot/initrd.img-3.16.0-24-generic
  172.     }
  173.     menuentry 'Ubuntu, with Linux 3.16.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-24-generic-recovery-78cc8ade-c36b-4014-b646-5bac48afc5e4' {
  174.         recordfail
  175.         load_video
  176.         insmod gzio
  177.         insmod part_gpt
  178.         insmod ext2
  179.         set root='hd0,gpt5'
  180.         if [ x$feature_platform_search_hint = xy ]; then
  181.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  78cc8ade-c36b-4014-b646-5bac48afc5e4
  182.         else
  183.           search --no-floppy --fs-uuid --set=root 78cc8ade-c36b-4014-b646-5bac48afc5e4
  184.         fi
  185.         echo    'Loading Linux 3.16.0-24-generic ...'
  186.         linux   /boot/vmlinuz-3.16.0-24-generic.efi.signed root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro recovery nomodeset
  187.         echo    'Loading initial ramdisk ...'
  188.         initrd  /boot/initrd.img-3.16.0-24-generic
  189.     }
  190.     menuentry 'Ubuntu, with Linux 3.16.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-advanced-78cc8ade-c36b-4014-b646-5bac48afc5e4' {
  191.         recordfail
  192.         load_video
  193.         gfxmode $linux_gfx_mode
  194.         insmod gzio
  195.         insmod part_gpt
  196.         insmod ext2
  197.         set root='hd0,gpt5'
  198.         if [ x$feature_platform_search_hint = xy ]; then
  199.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  78cc8ade-c36b-4014-b646-5bac48afc5e4
  200.         else
  201.           search --no-floppy --fs-uuid --set=root 78cc8ade-c36b-4014-b646-5bac48afc5e4
  202.         fi
  203.         echo    'Loading Linux 3.16.0-23-generic ...'
  204.         linux   /boot/vmlinuz-3.16.0-23-generic root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro  quiet splash $vt_handoff
  205.         echo    'Loading initial ramdisk ...'
  206.         initrd  /boot/initrd.img-3.16.0-23-generic
  207.     }
  208.     menuentry 'Ubuntu, with Linux 3.16.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-recovery-78cc8ade-c36b-4014-b646-5bac48afc5e4' {
  209.         recordfail
  210.         load_video
  211.         insmod gzio
  212.         insmod part_gpt
  213.         insmod ext2
  214.         set root='hd0,gpt5'
  215.         if [ x$feature_platform_search_hint = xy ]; then
  216.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  78cc8ade-c36b-4014-b646-5bac48afc5e4
  217.         else
  218.           search --no-floppy --fs-uuid --set=root 78cc8ade-c36b-4014-b646-5bac48afc5e4
  219.         fi
  220.         echo    'Loading Linux 3.16.0-23-generic ...'
  221.         linux   /boot/vmlinuz-3.16.0-23-generic root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro recovery nomodeset
  222.         echo    'Loading initial ramdisk ...'
  223.         initrd  /boot/initrd.img-3.16.0-23-generic
  224.     }
  225. }
  226.  
  227. ### END /etc/grub.d/10_linux ###
  228.  
  229. ### BEGIN /etc/grub.d/20_linux_xen ###
  230.  
  231. ### END /etc/grub.d/20_linux_xen ###
  232.  
  233. ### BEGIN /etc/grub.d/20_memtest86+ ###
  234. ### END /etc/grub.d/20_memtest86+ ###
  235.  
  236. ### BEGIN /etc/grub.d/30_os-prober ###
  237. menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-C814-23EC' {
  238.     insmod part_gpt
  239.     insmod fat
  240.     set root='hd0,gpt2'
  241.     if [ x$feature_platform_search_hint = xy ]; then
  242.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  C814-23EC
  243.     else
  244.       search --no-floppy --fs-uuid --set=root C814-23EC
  245.     fi
  246.     chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  247. }
  248. set timeout_style=menu
  249. if [ "${timeout}" = 0 ]; then
  250.   set timeout=10
  251. fi
  252. ### END /etc/grub.d/30_os-prober ###
  253.  
  254. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  255. menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
  256.     fwsetup
  257. }
  258. ### END /etc/grub.d/30_uefi-firmware ###
  259.  
  260. ### BEGIN /etc/grub.d/40_custom ###
  261. # This file provides an easy way to add custom menu entries.  Simply type the
  262. # menu entries you want to add after this comment.  Be careful not to change
  263. # the 'exec tail' line above.
  264. ### END /etc/grub.d/40_custom ###
  265.  
  266. ### BEGIN /etc/grub.d/41_custom ###
  267. if [ -f  ${config_directory}/custom.cfg ]; then
  268.   source ${config_directory}/custom.cfg
  269. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  270.   source $prefix/custom.cfg;
  271. fi
  272. ### END /etc/grub.d/41_custom ###
  273. ### BEGIN AUTOMAGIC KERNELS LIST
  274. ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
  275. ## by the debian update-grub script except for the default options below
  276.  
  277. ## DO NOT UNCOMMENT THEM, Just edit them to your needs
  278.  
  279. ## ## Start Default Options ##
  280. ## default kernel options
  281. ## default kernel options for automagic boot options
  282. ## If you want special options for specific kernels use kopt_x_y_z
  283. ## where x.y.z is kernel version. Minor versions can be omitted.
  284. ## e.g. kopt=root=/dev/hda1 ro
  285. ##      kopt_2_6_8=root=/dev/hdc1 ro
  286. ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
  287. # kopt=root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro
  288.  
  289. ## default grub root device
  290. ## e.g. groot=(hd0,0)
  291. # groot=78cc8ade-c36b-4014-b646-5bac48afc5e4
  292.  
  293. ## should update-grub create alternative automagic boot options
  294. ## e.g. alternative=true
  295. ##      alternative=false
  296. # alternative=true
  297.  
  298. ## should update-grub lock alternative automagic boot options
  299. ## e.g. lockalternative=true
  300. ##      lockalternative=false
  301. # lockalternative=false
  302.  
  303. ## additional options to use with the default boot option, but not with the
  304. ## alternatives
  305. ## e.g. defoptions=vga=791 resume=/dev/hda5
  306. # defoptions=quiet splash
  307.  
  308. ## should update-grub lock old automagic boot options
  309. ## e.g. lockold=false
  310. ##      lockold=true
  311. # lockold=false
  312.  
  313. ## Xen hypervisor options to use with the default Xen boot option
  314. # xenhopt=
  315.  
  316. ## Xen Linux kernel options to use with the default Xen boot option
  317. # xenkopt=console=tty0
  318.  
  319. ## altoption boot targets option
  320. ## multiple altoptions lines are allowed
  321. ## e.g. altoptions=(extra menu suffix) extra boot options
  322. ##      altoptions=(recovery) single
  323. # altoptions=(recovery mode) single
  324.  
  325. ## controls how many kernels should be put into the menu.lst
  326. ## only counts the first occurence of a kernel, not the
  327. ## alternative kernel options
  328. ## e.g. howmany=all
  329. ##      howmany=7
  330. # howmany=all
  331.  
  332. ## specify if running in Xen domU or have grub detect automatically
  333. ## update-grub will ignore non-xen kernels when running in domU and vice versa
  334. ## e.g. indomU=detect
  335. ##      indomU=true
  336. ##      indomU=false
  337. # indomU=detect
  338.  
  339. ## should update-grub create memtest86 boot option
  340. ## e.g. memtest86=true
  341. ##      memtest86=false
  342. # memtest86=true
  343.  
  344. ## should update-grub adjust the value of the default booted system
  345. ## can be true or false
  346. # updatedefaultentry=false
  347.  
  348. ## should update-grub add savedefault to the default options
  349. ## can be true or false
  350. # savedefault=false
  351.  
  352. ## ## End Default Options ##
  353.  
  354. title       Ubuntu 14.10, kernel 3.16.0-25-generic.efi.signed
  355. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  356. kernel      /boot/vmlinuz-3.16.0-25-generic.efi.signed root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro quiet splash
  357. quiet
  358.  
  359. title       Ubuntu 14.10, kernel 3.16.0-25-generic.efi.signed (recovery mode)
  360. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  361. kernel      /boot/vmlinuz-3.16.0-25-generic.efi.signed root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro  single
  362.  
  363. title       Ubuntu 14.10, kernel 3.16.0-25-generic
  364. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  365. kernel      /boot/vmlinuz-3.16.0-25-generic root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro quiet splash
  366. initrd      /boot/initrd.img-3.16.0-25-generic
  367. quiet
  368.  
  369. title       Ubuntu 14.10, kernel 3.16.0-25-generic (recovery mode)
  370. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  371. kernel      /boot/vmlinuz-3.16.0-25-generic root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro  single
  372. initrd      /boot/initrd.img-3.16.0-25-generic
  373.  
  374. title       Ubuntu 14.10, kernel 3.16.0-24-generic.efi.signed
  375. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  376. kernel      /boot/vmlinuz-3.16.0-24-generic.efi.signed root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro quiet splash
  377. quiet
  378.  
  379. title       Ubuntu 14.10, kernel 3.16.0-24-generic.efi.signed (recovery mode)
  380. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  381. kernel      /boot/vmlinuz-3.16.0-24-generic.efi.signed root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro  single
  382.  
  383. title       Ubuntu 14.10, kernel 3.16.0-24-generic
  384. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  385. kernel      /boot/vmlinuz-3.16.0-24-generic root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro quiet splash
  386. initrd      /boot/initrd.img-3.16.0-24-generic
  387. quiet
  388.  
  389. title       Ubuntu 14.10, kernel 3.16.0-24-generic (recovery mode)
  390. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  391. kernel      /boot/vmlinuz-3.16.0-24-generic root=UUID=78cc8ade-c36b-4014-b646-5bac48afc5e4 ro  single
  392. initrd      /boot/initrd.img-3.16.0-24-generic
  393.  
  394. title       Ubuntu 14.10, memtest86+
  395. uuid        78cc8ade-c36b-4014-b646-5bac48afc5e4
  396. kernel      /boot/memtest86+.bin
  397. quiet
  398.  
  399. ### END DEBIAN AUTOMAGIC KERNELS LIST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement