Advertisement
Guest User

grub.cfg

a guest
Jul 18th, 2017
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.98 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.   load_env
  11. fi
  12. if [ "${next_entry}" ] ; then
  13.    set default="${next_entry}"
  14.    set next_entry=
  15.    save_env next_entry
  16.    set boot_once=true
  17. else
  18.    set default="0"
  19. fi
  20.  
  21. if [ x"${feature_menuentry_id}" = xy ]; then
  22.   menuentry_id_option="--id"
  23. else
  24.   menuentry_id_option=""
  25. fi
  26.  
  27. export menuentry_id_option
  28.  
  29. if [ "${prev_saved_entry}" ]; then
  30.   set saved_entry="${prev_saved_entry}"
  31.   save_env saved_entry
  32.   set prev_saved_entry=
  33.   save_env prev_saved_entry
  34.   set boot_once=true
  35. fi
  36.  
  37. function savedefault {
  38.   if [ -z "${boot_once}" ]; then
  39.     saved_entry="${chosen}"
  40.     save_env saved_entry
  41.   fi
  42. }
  43.  
  44. function load_video {
  45.   if [ x$feature_all_video_module = xy ]; then
  46.     insmod all_video
  47.   else
  48.     insmod efi_gop
  49.     insmod efi_uga
  50.     insmod ieee1275_fb
  51.     insmod vbe
  52.     insmod vga
  53.     insmod video_bochs
  54.     insmod video_cirrus
  55.   fi
  56. }
  57.  
  58. if loadfont unicode ; then
  59.   set gfxmode=auto
  60.   load_video
  61.   insmod gfxterm
  62. fi
  63. terminal_output gfxterm
  64. if [ x$feature_timeout_style = xy ] ; then
  65.   set timeout_style=menu
  66.   set timeout=5
  67. # Fallback normal timeout code in case the timeout_style feature is
  68. # unavailable.
  69. else
  70.   set timeout=5
  71. fi
  72. ### END /etc/grub.d/00_header ###
  73.  
  74. ### BEGIN /etc/grub.d/10_linux ###
  75. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-/dev/mapper/vg0-root' {
  76.     load_video
  77.     if [ "x$grub_platform" = xefi ]; then
  78.         set gfxpayload=keep
  79.     fi
  80.     insmod gzio
  81.     insmod part_gpt
  82.     insmod fat
  83.     set root='hd0,gpt2'
  84.     if [ x$feature_platform_search_hint = xy ]; then
  85.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  D45E-B31D
  86.     else
  87.       search --no-floppy --fs-uuid --set=root D45E-B31D
  88.     fi
  89.     echo    'Loading Linux x86_64-4.9.34-gentoo ...'
  90.     linux   /kernel-genkernel-x86_64-4.9.34-gentoo root=/dev/mapper/vg0-root ro init=/usr/lib/systemd/systemd crypt_root=UUID=a3bac750-33a2-43fb-a707-de683bbc396b root_trim=yes dolvm keymap=uk
  91.     echo    'Loading initial ramdisk ...'
  92.     initrd  /initramfs-genkernel-x86_64-4.9.34-gentoo
  93. }
  94. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-/dev/mapper/vg0-root' {
  95.     menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.9.34-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.9.34-gentoo-advanced-/dev/mapper/vg0-root' {
  96.         load_video
  97.         if [ "x$grub_platform" = xefi ]; then
  98.             set gfxpayload=keep
  99.         fi
  100.         insmod gzio
  101.         insmod part_gpt
  102.         insmod fat
  103.         set root='hd0,gpt2'
  104.         if [ x$feature_platform_search_hint = xy ]; then
  105.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  D45E-B31D
  106.         else
  107.           search --no-floppy --fs-uuid --set=root D45E-B31D
  108.         fi
  109.         echo    'Loading Linux x86_64-4.9.34-gentoo ...'
  110.         linux   /kernel-genkernel-x86_64-4.9.34-gentoo root=/dev/mapper/vg0-root ro init=/usr/lib/systemd/systemd crypt_root=UUID=a3bac750-33a2-43fb-a707-de683bbc396b root_trim=yes dolvm keymap=uk
  111.         echo    'Loading initial ramdisk ...'
  112.         initrd  /initramfs-genkernel-x86_64-4.9.34-gentoo
  113.     }
  114.     menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.9.34-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.9.34-gentoo-recovery-/dev/mapper/vg0-root' {
  115.         load_video
  116.         if [ "x$grub_platform" = xefi ]; then
  117.             set gfxpayload=keep
  118.         fi
  119.         insmod gzio
  120.         insmod part_gpt
  121.         insmod fat
  122.         set root='hd0,gpt2'
  123.         if [ x$feature_platform_search_hint = xy ]; then
  124.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  D45E-B31D
  125.         else
  126.           search --no-floppy --fs-uuid --set=root D45E-B31D
  127.         fi
  128.         echo    'Loading Linux x86_64-4.9.34-gentoo ...'
  129.         linux   /kernel-genkernel-x86_64-4.9.34-gentoo root=/dev/mapper/vg0-root ro single init=/usr/lib/systemd/systemd crypt_root=UUID=a3bac750-33a2-43fb-a707-de683bbc396b root_trim=yes dolvm keymap=uk
  130.         echo    'Loading initial ramdisk ...'
  131.         initrd  /initramfs-genkernel-x86_64-4.9.34-gentoo
  132.     }
  133. }
  134.  
  135. ### END /etc/grub.d/10_linux ###
  136.  
  137. ### BEGIN /etc/grub.d/20_linux_xen ###
  138. ### END /etc/grub.d/20_linux_xen ###
  139.  
  140. ### BEGIN /etc/grub.d/30_os-prober ###
  141. ### END /etc/grub.d/30_os-prober ###
  142.  
  143. ### BEGIN /etc/grub.d/40_custom ###
  144. # This file provides an easy way to add custom menu entries.  Simply type the
  145. # menu entries you want to add after this comment.  Be careful not to change
  146. # the 'exec tail' line above.
  147. ### END /etc/grub.d/40_custom ###
  148.  
  149. ### BEGIN /etc/grub.d/41_custom ###
  150. if [ -f  ${config_directory}/custom.cfg ]; then
  151.   source ${config_directory}/custom.cfg
  152. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  153.   source $prefix/custom.cfg;
  154. fi
  155. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement