daily pastebin goal
44%
SHARE
TWEET

grub-mkconfig

timcowchip May 8th, 2014 136 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.   load_env
  11. fi
  12. set default="0"
  13.  
  14. if [ x"${feature_menuentry_id}" = xy ]; then
  15.   menuentry_id_option="--id"
  16. else
  17.   menuentry_id_option=""
  18. fi
  19.  
  20. export menuentry_id_option
  21.  
  22. if [ "${prev_saved_entry}" ]; then
  23.   set saved_entry="${prev_saved_entry}"
  24.   save_env saved_entry
  25.   set prev_saved_entry=
  26.   save_env prev_saved_entry
  27.   set boot_once=true
  28. fi
  29.  
  30. function savedefault {
  31.   if [ -z "${boot_once}" ]; then
  32.     saved_entry="${chosen}"
  33.     save_env saved_entry
  34.   fi
  35. }
  36.  
  37. function load_video {
  38.   if [ x$feature_all_video_module = xy ]; then
  39.     insmod all_video
  40.   else
  41.     insmod efi_gop
  42.     insmod efi_uga
  43.     insmod ieee1275_fb
  44.     insmod vbe
  45.     insmod vga
  46.     insmod video_bochs
  47.     insmod video_cirrus
  48.   fi
  49. }
  50.  
  51. if [ x$feature_default_font_path = xy ] ; then
  52.    font=unicode
  53. else
  54. insmod part_msdos
  55. insmod ext2
  56. set root='hd0,msdos3'
  57. if [ x$feature_platform_search_hint = xy ]; then
  58.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  029330a6-afc2-4e8b-b1c6-b7bb79347a21
  59. else
  60.   search --no-floppy --fs-uuid --set=root 029330a6-afc2-4e8b-b1c6-b7bb79347a21
  61. fi
  62.     font="/usr/share/grub/unifont.pf2"
  63. fi
  64.  
  65. if loadfont $font ; then
  66.   set gfxmode=auto
  67.   load_video
  68.   insmod gfxterm
  69.   set locale_dir=$prefix/locale
  70.   set lang=en_US
  71.   insmod gettext
  72. fi
  73. terminal_output gfxterm
  74. set timeout=5
  75. ### END /etc/grub.d/00_header ###
  76.  
  77. ### BEGIN /etc/grub.d/10_linux ###
  78. menuentry 'GNU/Linux' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-029330a6-afc2-4e8b-b1c6-b7bb79347a21' {
  79.         load_video
  80.         insmod gzio
  81.         insmod part_msdos
  82.         insmod ext2
  83.         set root='hd0,msdos3'
  84.         if [ x$feature_platform_search_hint = xy ]; then
  85.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  029330a6-afc2-4e8b-b1c6-b7bb79347a21
  86.         else
  87.           search --no-floppy --fs-uuid --set=root 029330a6-afc2-4e8b-b1c6-b7bb79347a21
  88.         fi
  89.         echo    'Loading Linux 3.12.17 ...'
  90.         linux   /boot/vmlinuz-3.12.17 root=/dev/sda3 ro  
  91. }
  92. submenu 'Advanced options for GNU/Linux' $menuentry_id_option 'gnulinux-advanced-029330a6-afc2-4e8b-b1c6-b7bb79347a21' {
  93.         menuentry 'GNU/Linux, with Linux 3.12.17' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12.17-advanced-029330a6-afc2-4e8b-b1c6-b7bb79347a21' {
  94.                 load_video
  95.                 insmod gzio
  96.                 insmod part_msdos
  97.                 insmod ext2
  98.                 set root='hd0,msdos3'
  99.                 if [ x$feature_platform_search_hint = xy ]; then
  100.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  029330a6-afc2-4e8b-b1c6-b7bb79347a21
  101.                 else
  102.                   search --no-floppy --fs-uuid --set=root 029330a6-afc2-4e8b-b1c6-b7bb79347a21
  103.                 fi
  104.                 echo    'Loading Linux 3.12.17 ...'
  105.                 linux   /boot/vmlinuz-3.12.17 root=/dev/sda3 ro  
  106.         }
  107.         menuentry 'GNU/Linux, with Linux 3.12.17 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12.17-recovery-029330a6-afc2-4e8b-b1c6-b7bb79347a21' {
  108.                 load_video
  109.                 insmod gzio
  110.                 insmod part_msdos
  111.                 insmod ext2
  112.                 set root='hd0,msdos3'
  113.                 if [ x$feature_platform_search_hint = xy ]; then
  114.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  029330a6-afc2-4e8b-b1c6-b7bb79347a21
  115.                 else
  116.                   search --no-floppy --fs-uuid --set=root 029330a6-afc2-4e8b-b1c6-b7bb79347a21
  117.                 fi
  118.                 echo    'Loading Linux 3.12.17 ...'
  119.                 linux   /boot/vmlinuz-3.12.17 root=/dev/sda3 ro single
  120.         }
  121. }
  122.  
  123. ### END /etc/grub.d/10_linux ###
  124.  
  125. ### BEGIN /etc/grub.d/20_linux_xen ###
  126. ### END /etc/grub.d/20_linux_xen ###
  127.  
  128. ### BEGIN /etc/grub.d/30_os-prober ###
  129. menuentry 'Gentoo Base System release 2.2' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-af1913e2-79f4-4d3c-8b43-b68d70842410' {
  130.         insmod part_msdos
  131.         insmod ext2
  132.         set root='hd0,msdos1'
  133.         if [ x$feature_platform_search_hint = xy ]; then
  134.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  af1913e2-79f4-4d3c-8b43-b68d70842410
  135.         else
  136.           search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  137.         fi
  138.         linux /boot/kernel-genkernel-x86_64-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro
  139.         initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  140. }
  141. submenu 'Advanced options for Gentoo Base System release 2.2' $menuentry_id_option 'osprober-gnulinux-advanced-af1913e2-79f4-4d3c-8b43-b68d70842410' {
  142.         menuentry 'Gentoo GNU/Linux (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.12.13-gentoo--af1913e2-79f4-4d3c-8b43-b68d70842410' {
  143.                 insmod part_msdos
  144.                 insmod ext2
  145.                 set root='hd0,msdos1'
  146.                 if [ x$feature_platform_search_hint = xy ]; then
  147.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  af1913e2-79f4-4d3c-8b43-b68d70842410
  148.                 else
  149.                   search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  150.                 fi
  151.                 linux /boot/kernel-genkernel-x86_64-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro
  152.                 initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  153.         }
  154.         menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.12.13-gentoo (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.12.13-gentoo--af1913e2-79f4-4d3c-8b43-b68d70842410' {
  155.                 insmod part_msdos
  156.                 insmod ext2
  157.                 set root='hd0,msdos1'
  158.                 if [ x$feature_platform_search_hint = xy ]; then
  159.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  af1913e2-79f4-4d3c-8b43-b68d70842410
  160.                 else
  161.                   search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  162.                 fi
  163.                 linux /boot/kernel-genkernel-x86_64-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro
  164.                 initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  165.         }
  166.         menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.12.13-gentoo (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.12.13-gentoo-root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro single-af1913e2-79f4-4d3c-8b43-b68d70842410' {
  167.                 insmod part_msdos
  168.                 insmod ext2
  169.                 set root='hd0,msdos1'
  170.                 if [ x$feature_platform_search_hint = xy ]; then
  171.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  af1913e2-79f4-4d3c-8b43-b68d70842410
  172.                 else
  173.                   search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  174.                 fi
  175.                 linux /boot/kernel-genkernel-x86_64-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro single
  176.                 initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  177.         }
  178.         menuentry 'Gentoo GNU/Linux, with Linux 3.12.13-gentoo (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.12.13-gentoo--af1913e2-79f4-4d3c-8b43-b68d70842410' {
  179.                 insmod part_msdos
  180.                 insmod ext2
  181.                 set root='hd0,msdos1'
  182.                 if [ x$feature_platform_search_hint = xy ]; then
  183.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  af1913e2-79f4-4d3c-8b43-b68d70842410
  184.                 else
  185.                   search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  186.                 fi
  187.                 linux /boot/kernel-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro
  188.                 initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  189.         }
  190.         menuentry 'Gentoo GNU/Linux, with Linux 3.12.13-gentoo (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.12.13-gentoo-root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro single-af1913e2-79f4-4d3c-8b43-b68d70842410' {
  191.                 insmod part_msdos
  192.                 insmod ext2
  193.                 set root='hd0,msdos1'
  194.                 if [ x$feature_platform_search_hint = xy ]; then
  195.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  af1913e2-79f4-4d3c-8b43-b68d70842410
  196.                 else
  197.                   search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  198.                 fi
  199.                 linux /boot/kernel-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro single
  200.                 initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  201.         }
  202. }
  203.  
  204. menuentry 'Slackware Linux (Slackware 14.1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  205.         insmod part_msdos
  206.         insmod ext2
  207.         set root='hd0,msdos2'
  208.         if [ x$feature_platform_search_hint = xy ]; then
  209.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  210.         else
  211.           search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  212.         fi
  213.         linux /boot/vmlinuz-huge-3.10.30 root=/dev/sda2 ro vt.default_utf8=1 quiet
  214. }
  215. submenu 'Advanced options for Slackware Linux (Slackware 14.1)' $menuentry_id_option 'osprober-gnulinux-advanced-1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  216.         menuentry 'Slackel 14.1 GNU/Linux (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.30--1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  217.                 insmod part_msdos
  218.                 insmod ext2
  219.                 set root='hd0,msdos2'
  220.                 if [ x$feature_platform_search_hint = xy ]; then
  221.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  222.                 else
  223.                   search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  224.                 fi
  225.                 linux /boot/vmlinuz-huge-3.10.30 root=/dev/sda2 ro vt.default_utf8=1 quiet
  226.         }
  227.         menuentry 'Slackel 14.1 GNU/Linux, with Linux 3.10.30 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.30--1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  228.                 insmod part_msdos
  229.                 insmod ext2
  230.                 set root='hd0,msdos2'
  231.                 if [ x$feature_platform_search_hint = xy ]; then
  232.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  233.                 else
  234.                   search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  235.                 fi
  236.                 linux /boot/vmlinuz-huge-3.10.30 root=/dev/sda2 ro vt.default_utf8=1 quiet
  237.         }
  238.         menuentry 'Slackware Linux (Slackware 14.1) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.30--1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  239.                 insmod part_msdos
  240.                 insmod ext2
  241.                 set root='hd0,msdos2'
  242.                 if [ x$feature_platform_search_hint = xy ]; then
  243.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  244.                 else
  245.                   search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  246.                 fi
  247.                 linux /boot/vmlinuz-huge-3.10.30 root=/dev/sda2 ro vt.default_utf8=1 quiet
  248.         }
  249.         menuentry 'unknown Linux distribution (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  250.                 insmod part_msdos
  251.                 insmod ext2
  252.                 set root='hd0,msdos2'
  253.                 if [ x$feature_platform_search_hint = xy ]; then
  254.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  255.                 else
  256.                   search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  257.                 fi
  258.                 linux /boot/vmlinuz root=/dev/sda3
  259.         }
  260. }
  261.  
  262. ### END /etc/grub.d/30_os-prober ###
  263.  
  264. ### BEGIN /etc/grub.d/40_custom ###
  265. # This file provides an easy way to add custom menu entries.  Simply type the
  266. # menu entries you want to add after this comment.  Be careful not to change
  267. # the 'exec tail' line above.
  268. ### END /etc/grub.d/40_custom ###
  269.  
  270. ### BEGIN /etc/grub.d/41_custom ###
  271. if [ -f  ${config_directory}/custom.cfg ]; then
  272.   source ${config_directory}/custom.cfg
  273. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  274.   source $prefix/custom.cfg;
  275. fi
  276. ### END /etc/grub.d/41_custom ###
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top