Advertisement
Guest User

grub.cfg

a guest
Sep 15th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.29 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 [ x$feature_default_font_path = xy ] ; then
  59.    font=unicode
  60. else
  61. insmod part_gpt
  62. insmod lvm
  63. insmod ext2
  64. set root='lvmid/KnShhU-tUdf-nNXl-iXmN-n6HX-5a7V-rz4dSw/EDF1CU-tRqJ-w6vg-jLNe-vtDX-OPnB-wcf3wj'
  65. if [ x$feature_platform_search_hint = xy ]; then
  66.   search --no-floppy --fs-uuid --set=root --hint='lvmid/KnShhU-tUdf-nNXl-iXmN-n6HX-5a7V-rz4dSw/EDF1CU-tRqJ-w6vg-jLNe-vtDX-OPnB-wcf3wj'  a3054f02-f505-4115-bb77-f9570b6e1da3
  67. else
  68.   search --no-floppy --fs-uuid --set=root a3054f02-f505-4115-bb77-f9570b6e1da3
  69. fi
  70.     font="/usr/share/grub/unicode.pf2"
  71. fi
  72.  
  73. if loadfont $font ; then
  74.   set gfxmode=auto
  75.   load_video
  76.   insmod gfxterm
  77.   set locale_dir=$prefix/locale
  78.   set lang=C
  79.   insmod gettext
  80. fi
  81. terminal_output gfxterm
  82. if [ x$feature_timeout_style = xy ] ; then
  83.   set timeout_style=menu
  84.   set timeout=5
  85. # Fallback normal timeout code in case the timeout_style feature is
  86. # unavailable.
  87. else
  88.   set timeout=5
  89. fi
  90. ### END /etc/grub.d/00_header ###
  91.  
  92. ### BEGIN /etc/grub.d/10_linux ###
  93. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a3054f02-f505-4115-bb77-f9570b6e1da3' {
  94.     load_video
  95.     if [ "x$grub_platform" = xefi ]; then
  96.         set gfxpayload=keep
  97.     fi
  98.     insmod gzio
  99.     insmod part_gpt
  100.     insmod fat
  101.     set root='hd0,gpt2'
  102.     if [ x$feature_platform_search_hint = xy ]; then
  103.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  9390-D899
  104.     else
  105.       search --no-floppy --fs-uuid --set=root 9390-D899
  106.     fi
  107.     echo    'Loading Linux 4.19.72-gentoo ...'
  108.     linux   /vmlinuz-4.19.72-gentoo root=/dev/mapper/vg--gentoo-lv--rootfs ro  
  109.     echo    'Loading initial ramdisk ...'
  110.     initrd  /initramfs-genkernel-x86_64-4.19.72-gentoo
  111. }
  112. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-a3054f02-f505-4115-bb77-f9570b6e1da3' {
  113.     menuentry 'Gentoo GNU/Linux, with Linux 4.19.72-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.72-gentoo-advanced-a3054f02-f505-4115-bb77-f9570b6e1da3' {
  114.         load_video
  115.         if [ "x$grub_platform" = xefi ]; then
  116.             set gfxpayload=keep
  117.         fi
  118.         insmod gzio
  119.         insmod part_gpt
  120.         insmod fat
  121.         set root='hd0,gpt2'
  122.         if [ x$feature_platform_search_hint = xy ]; then
  123.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  9390-D899
  124.         else
  125.           search --no-floppy --fs-uuid --set=root 9390-D899
  126.         fi
  127.         echo    'Loading Linux 4.19.72-gentoo ...'
  128.         linux   /vmlinuz-4.19.72-gentoo root=/dev/mapper/vg--gentoo-lv--rootfs ro  
  129.         echo    'Loading initial ramdisk ...'
  130.         initrd  /initramfs-genkernel-x86_64-4.19.72-gentoo
  131.     }
  132.     menuentry 'Gentoo GNU/Linux, with Linux 4.19.72-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.72-gentoo-recovery-a3054f02-f505-4115-bb77-f9570b6e1da3' {
  133.         load_video
  134.         if [ "x$grub_platform" = xefi ]; then
  135.             set gfxpayload=keep
  136.         fi
  137.         insmod gzio
  138.         insmod part_gpt
  139.         insmod fat
  140.         set root='hd0,gpt2'
  141.         if [ x$feature_platform_search_hint = xy ]; then
  142.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  9390-D899
  143.         else
  144.           search --no-floppy --fs-uuid --set=root 9390-D899
  145.         fi
  146.         echo    'Loading Linux 4.19.72-gentoo ...'
  147.         linux   /vmlinuz-4.19.72-gentoo root=/dev/mapper/vg--gentoo-lv--rootfs ro single
  148.         echo    'Loading initial ramdisk ...'
  149.         initrd  /initramfs-genkernel-x86_64-4.19.72-gentoo
  150.     }
  151. }
  152.  
  153. ### END /etc/grub.d/10_linux ###
  154.  
  155. ### BEGIN /etc/grub.d/20_linux_xen ###
  156. ### END /etc/grub.d/20_linux_xen ###
  157.  
  158. ### BEGIN /etc/grub.d/30_os-prober ###
  159. ### END /etc/grub.d/30_os-prober ###
  160.  
  161. ### BEGIN /etc/grub.d/40_custom ###
  162. # This file provides an easy way to add custom menu entries.  Simply type the
  163. # menu entries you want to add after this comment.  Be careful not to change
  164. # the 'exec tail' line above.
  165. ### END /etc/grub.d/40_custom ###
  166.  
  167. ### BEGIN /etc/grub.d/41_custom ###
  168. if [ -f  ${config_directory}/custom.cfg ]; then
  169.   source ${config_directory}/custom.cfg
  170. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  171.   source $prefix/custom.cfg;
  172. fi
  173. ### END /etc/grub.d/41_custom ###
  174.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement