SHARE
TWEET

grub.cfg

a guest Nov 12th, 2019 94 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.   set have_grubenv=true
  11.   load_env
  12. fi
  13. if [ "${initrdfail}" = 2 ]; then
  14.    set initrdfail=
  15. elif [ "${initrdfail}" = 1 ]; then
  16.    set next_entry="${prev_entry}"
  17.    set prev_entry=
  18.    save_env prev_entry
  19.    if [ "${next_entry}" ]; then
  20.       set initrdfail=2
  21.    fi
  22. fi
  23. if [ "${next_entry}" ] ; then
  24.    set default="${next_entry}"
  25.    set next_entry=
  26.    save_env next_entry
  27.    set boot_once=true
  28. else
  29.    set default="${saved_entry}"
  30. fi
  31.  
  32. if [ x"${feature_menuentry_id}" = xy ]; then
  33.   menuentry_id_option="--id"
  34. else
  35.   menuentry_id_option=""
  36. fi
  37.  
  38. export menuentry_id_option
  39.  
  40. if [ "${prev_saved_entry}" ]; then
  41.   set saved_entry="${prev_saved_entry}"
  42.   save_env saved_entry
  43.   set prev_saved_entry=
  44.   save_env prev_saved_entry
  45.   set boot_once=true
  46. fi
  47.  
  48. function savedefault {
  49.   if [ -z "${boot_once}" ]; then
  50.     saved_entry="${chosen}"
  51.     save_env saved_entry
  52.   fi
  53. }
  54. function initrdfail {
  55.     if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
  56.       if [ -z "${initrdfail}" ]; then
  57.         set initrdfail=1
  58.         if [ -n "${boot_once}" ]; then
  59.           set prev_entry="${default}"
  60.           save_env prev_entry
  61.         fi
  62.       fi
  63.       save_env initrdfail
  64.     fi; fi
  65. }
  66. function recordfail {
  67.   set recordfail=1
  68.   if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  69. }
  70. function load_video {
  71.   if [ x$feature_all_video_module = xy ]; then
  72.     insmod all_video
  73.   else
  74.     insmod efi_gop
  75.     insmod efi_uga
  76.     insmod ieee1275_fb
  77.     insmod vbe
  78.     insmod vga
  79.     insmod video_bochs
  80.     insmod video_cirrus
  81.   fi
  82. }
  83.  
  84. if [ x$feature_default_font_path = xy ] ; then
  85.    font=unicode
  86. else
  87. insmod part_gpt
  88. insmod xfs
  89. set root='hd0,gpt4'
  90. if [ x$feature_platform_search_hint = xy ]; then
  91.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  f4086375-c30c-43a9-a495-7657840da71e
  92. else
  93.   search --no-floppy --fs-uuid --set=root f4086375-c30c-43a9-a495-7657840da71e
  94. fi
  95.     font="/usr/share/grub/unicode.pf2"
  96. fi
  97.  
  98. if loadfont $font ; then
  99.   set gfxmode=auto
  100.   load_video
  101.   insmod gfxterm
  102.   set locale_dir=$prefix/locale
  103.   set lang=en_US
  104.   insmod gettext
  105. fi
  106. terminal_output gfxterm
  107. if [ "${recordfail}" = 1 ] ; then
  108.   set timeout=30
  109. else
  110.   if [ x$feature_timeout_style = xy ] ; then
  111.     set timeout_style=menu
  112.     set timeout=0
  113.   # Fallback normal timeout code in case the timeout_style feature is
  114.   # unavailable.
  115.   else
  116.     set timeout=0
  117.   fi
  118. fi
  119. ### END /etc/grub.d/00_header ###
  120.  
  121. ### BEGIN /etc/grub.d/05_debian_theme ###
  122. set menu_color_normal=white/black
  123. set menu_color_highlight=black/light-gray
  124. if background_color 44,0,30,0; then
  125.   clear
  126. fi
  127. ### END /etc/grub.d/05_debian_theme ###
  128.  
  129. ### BEGIN /etc/grub.d/10_linux ###
  130. function gfxmode {
  131.     set gfxpayload="${1}"
  132.     if [ "${1}" = "keep" ]; then
  133.         set vt_handoff=vt.handoff=1
  134.     else
  135.         set vt_handoff=
  136.     fi
  137. }
  138. if [ "${recordfail}" != 1 ]; then
  139.   if [ -e ${prefix}/gfxblacklist.txt ]; then
  140.     if hwmatch ${prefix}/gfxblacklist.txt 3; then
  141.       if [ ${match} = 0 ]; then
  142.         set linux_gfx_mode=keep
  143.       else
  144.         set linux_gfx_mode=text
  145.       fi
  146.     else
  147.       set linux_gfx_mode=text
  148.     fi
  149.   else
  150.     set linux_gfx_mode=keep
  151.   fi
  152. else
  153.   set linux_gfx_mode=text
  154. fi
  155. export linux_gfx_mode
  156. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f4086375-c30c-43a9-a495-7657840da71e' {
  157.     recordfail
  158.     savedefault
  159.     load_video
  160.     gfxmode $linux_gfx_mode
  161.     insmod gzio
  162.     if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  163.     insmod part_gpt
  164.     insmod xfs
  165.     set root='hd0,gpt4'
  166.     if [ x$feature_platform_search_hint = xy ]; then
  167.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  f4086375-c30c-43a9-a495-7657840da71e
  168.     else
  169.       search --no-floppy --fs-uuid --set=root f4086375-c30c-43a9-a495-7657840da71e
  170.     fi
  171.     linux   /boot/vmlinuz-5.0.0-32-generic root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro  quiet splash resume=UUID=7283fadd-6c00-411e-a2cc-026ca7c93f3d $vt_handoff
  172.     initrd  /boot/initrd.img-5.0.0-32-generic
  173. }
  174. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-f4086375-c30c-43a9-a495-7657840da71e' {
  175.     menuentry 'Ubuntu, with Linux 5.0.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-32-generic-advanced-f4086375-c30c-43a9-a495-7657840da71e' {
  176.         recordfail
  177.     savedefault
  178.         load_video
  179.         gfxmode $linux_gfx_mode
  180.         insmod gzio
  181.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  182.         insmod part_gpt
  183.         insmod xfs
  184.         set root='hd0,gpt4'
  185.         if [ x$feature_platform_search_hint = xy ]; then
  186.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  f4086375-c30c-43a9-a495-7657840da71e
  187.         else
  188.           search --no-floppy --fs-uuid --set=root f4086375-c30c-43a9-a495-7657840da71e
  189.         fi
  190.         echo    'Loading Linux 5.0.0-32-generic ...'
  191.         linux   /boot/vmlinuz-5.0.0-32-generic root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro  quiet splash resume=UUID=7283fadd-6c00-411e-a2cc-026ca7c93f3d $vt_handoff
  192.         echo    'Loading initial ramdisk ...'
  193.         initrd  /boot/initrd.img-5.0.0-32-generic
  194.     }
  195.     menuentry 'Ubuntu, with Linux 5.0.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-32-generic-recovery-f4086375-c30c-43a9-a495-7657840da71e' {
  196.         recordfail
  197.         load_video
  198.         insmod gzio
  199.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  200.         insmod part_gpt
  201.         insmod xfs
  202.         set root='hd0,gpt4'
  203.         if [ x$feature_platform_search_hint = xy ]; then
  204.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  f4086375-c30c-43a9-a495-7657840da71e
  205.         else
  206.           search --no-floppy --fs-uuid --set=root f4086375-c30c-43a9-a495-7657840da71e
  207.         fi
  208.         echo    'Loading Linux 5.0.0-32-generic ...'
  209.         linux   /boot/vmlinuz-5.0.0-32-generic root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro recovery nomodeset
  210.         echo    'Loading initial ramdisk ...'
  211.         initrd  /boot/initrd.img-5.0.0-32-generic
  212.     }
  213.     menuentry 'Ubuntu, with Linux 5.0.0-31-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-31-generic-advanced-f4086375-c30c-43a9-a495-7657840da71e' {
  214.         recordfail
  215.     savedefault
  216.         load_video
  217.         gfxmode $linux_gfx_mode
  218.         insmod gzio
  219.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  220.         insmod part_gpt
  221.         insmod xfs
  222.         set root='hd0,gpt4'
  223.         if [ x$feature_platform_search_hint = xy ]; then
  224.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  f4086375-c30c-43a9-a495-7657840da71e
  225.         else
  226.           search --no-floppy --fs-uuid --set=root f4086375-c30c-43a9-a495-7657840da71e
  227.         fi
  228.         echo    'Loading Linux 5.0.0-31-generic ...'
  229.         linux   /boot/vmlinuz-5.0.0-31-generic root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro  quiet splash resume=UUID=7283fadd-6c00-411e-a2cc-026ca7c93f3d $vt_handoff
  230.         echo    'Loading initial ramdisk ...'
  231.         initrd  /boot/initrd.img-5.0.0-31-generic
  232.     }
  233.     menuentry 'Ubuntu, with Linux 5.0.0-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-31-generic-recovery-f4086375-c30c-43a9-a495-7657840da71e' {
  234.         recordfail
  235.         load_video
  236.         insmod gzio
  237.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  238.         insmod part_gpt
  239.         insmod xfs
  240.         set root='hd0,gpt4'
  241.         if [ x$feature_platform_search_hint = xy ]; then
  242.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  f4086375-c30c-43a9-a495-7657840da71e
  243.         else
  244.           search --no-floppy --fs-uuid --set=root f4086375-c30c-43a9-a495-7657840da71e
  245.         fi
  246.         echo    'Loading Linux 5.0.0-31-generic ...'
  247.         linux   /boot/vmlinuz-5.0.0-31-generic root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro recovery nomodeset
  248.         echo    'Loading initial ramdisk ...'
  249.         initrd  /boot/initrd.img-5.0.0-31-generic
  250.     }
  251.     menuentry 'Ubuntu, with Linux 5.0.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-29-generic-advanced-f4086375-c30c-43a9-a495-7657840da71e' {
  252.         recordfail
  253.     savedefault
  254.         load_video
  255.         gfxmode $linux_gfx_mode
  256.         insmod gzio
  257.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  258.         insmod part_gpt
  259.         insmod xfs
  260.         set root='hd0,gpt4'
  261.         if [ x$feature_platform_search_hint = xy ]; then
  262.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  f4086375-c30c-43a9-a495-7657840da71e
  263.         else
  264.           search --no-floppy --fs-uuid --set=root f4086375-c30c-43a9-a495-7657840da71e
  265.         fi
  266.         echo    'Loading Linux 5.0.0-29-generic ...'
  267.         linux   /boot/vmlinuz-5.0.0-29-generic root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro  quiet splash resume=UUID=7283fadd-6c00-411e-a2cc-026ca7c93f3d $vt_handoff
  268.         echo    'Loading initial ramdisk ...'
  269.         initrd  /boot/initrd.img-5.0.0-29-generic
  270.     }
  271.     menuentry 'Ubuntu, with Linux 5.0.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-29-generic-recovery-f4086375-c30c-43a9-a495-7657840da71e' {
  272.         recordfail
  273.         load_video
  274.         insmod gzio
  275.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  276.         insmod part_gpt
  277.         insmod xfs
  278.         set root='hd0,gpt4'
  279.         if [ x$feature_platform_search_hint = xy ]; then
  280.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  f4086375-c30c-43a9-a495-7657840da71e
  281.         else
  282.           search --no-floppy --fs-uuid --set=root f4086375-c30c-43a9-a495-7657840da71e
  283.         fi
  284.         echo    'Loading Linux 5.0.0-29-generic ...'
  285.         linux   /boot/vmlinuz-5.0.0-29-generic root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro recovery nomodeset
  286.         echo    'Loading initial ramdisk ...'
  287.         initrd  /boot/initrd.img-5.0.0-29-generic
  288.     }
  289. }
  290.  
  291. ### END /etc/grub.d/10_linux ###
  292.  
  293. ### BEGIN /etc/grub.d/20_linux_xen ###
  294.  
  295. ### END /etc/grub.d/20_linux_xen ###
  296.  
  297. ### BEGIN /etc/grub.d/21_memtest86+ ###
  298. ### END /etc/grub.d/21_memtest86+ ###
  299.  
  300. ### BEGIN /etc/grub.d/30_os-prober_proxy ###
  301.  
  302.  
  303.  
  304.  
  305. set timeout_style=menu
  306. if [ "${timeout}" = 0 ]; then
  307.   set timeout=10
  308. fi
  309. ### END /etc/grub.d/30_os-prober_proxy ###
  310.  
  311. ### BEGIN /etc/grub.d/40_custom_proxy ###
  312. menuentry "KaOS (rolling) (on /dev/sda3)" --class kaos --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-/dev/sda3' {
  313.     savedefault
  314.     insmod part_gpt
  315.     insmod fat
  316.     set root='hd0,gpt1'
  317.     if [ x$feature_platform_search_hint = xy ]; then
  318.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  9C8B-5856
  319.     else
  320.       search --no-floppy --fs-uuid --set=root 9C8B-5856
  321.     fi
  322.     linux /vmlinuz-linux root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro quiet splash $vt_handoff
  323.     initrd /initramfs-linux.img
  324.     init=/usr/lib/systemd/systemd
  325. }
  326. ### END /etc/grub.d/40_custom_proxy ###
  327.  
  328. ### BEGIN /etc/grub.d/41_os-prober_proxy ###
  329. submenu "Advanced options for KaOS (rolling) (on /dev/sda3)"{
  330. menuentry "Ubuntu (on /dev/sda3)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-linux--/dev/sda3' {
  331.         savedefault
  332.         insmod part_gpt
  333.         insmod fat
  334.         set root='hd0,gpt1'
  335.         if [ x$feature_platform_search_hint = xy ]; then
  336.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  9C8B-5856
  337.         else
  338.           search --no-floppy --fs-uuid --set=root 9C8B-5856
  339.         fi
  340.         linux /vmlinuz-linux root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro quiet splash $vt_handoff
  341.         initrd /initramfs-linux.img
  342. }
  343. menuentry "Ubuntu, with Linux linux (on /dev/sda3)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-linux--/dev/sda3' {
  344.         savedefault
  345.         insmod part_gpt
  346.         insmod fat
  347.         set root='hd0,gpt1'
  348.         if [ x$feature_platform_search_hint = xy ]; then
  349.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  9C8B-5856
  350.         else
  351.           search --no-floppy --fs-uuid --set=root 9C8B-5856
  352.         fi
  353.         linux /vmlinuz-linux root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro quiet splash $vt_handoff
  354.         initrd /initramfs-linux.img
  355. }
  356. menuentry "Ubuntu, with Linux linux (recovery mode) (on /dev/sda3)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-linux-root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro recovery nomodeset-/dev/sda3' {
  357.         savedefault
  358.         insmod part_gpt
  359.         insmod fat
  360.         set root='hd0,gpt1'
  361.         if [ x$feature_platform_search_hint = xy ]; then
  362.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  9C8B-5856
  363.         else
  364.           search --no-floppy --fs-uuid --set=root 9C8B-5856
  365.         fi
  366.         linux /vmlinuz-linux root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro recovery nomodeset
  367.         initrd /initramfs-linux.img
  368. }
  369. }
  370. ### END /etc/grub.d/41_os-prober_proxy ###
  371.  
  372. ### BEGIN /etc/grub.d/42_uefi-firmware ###
  373. menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
  374.     fwsetup
  375. }
  376. ### END /etc/grub.d/42_uefi-firmware ###
  377.  
  378. ### BEGIN /etc/grub.d/43_custom_proxy ###
  379. menuentry "KaOS (rolling) (on /dev/sda3)" --class kaos --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-/dev/sda3' {
  380.     savedefault
  381.     insmod part_gpt
  382.     insmod fat
  383.     set root='hd0,gpt1'
  384.     if [ x$feature_platform_search_hint = xy ]; then
  385.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  9C8B-5856
  386.     else
  387.       search --no-floppy --fs-uuid --set=root 9C8B-5856
  388.     fi
  389.     linux /vmlinuz-linux root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro quiet splash $vt_handoff
  390.     initrd /initramfs-linux.img
  391.     init=/usr/lib/systemd/systemd
  392. }
  393.  
  394. # This file provides an easy way to add custom menu entries.  Simply type the
  395. # menu entries you want to add after this comment.  Be careful not to change
  396. # the 'exec tail' line above.
  397.  
  398.  
  399. menuentry "KaOS (rolling) (on /dev/sda3)" --class kaos --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-/dev/sda3' {
  400.     savedefault
  401.     insmod part_gpt
  402.     insmod fat
  403.     set root='hd0,gpt1'
  404.     if [ x$feature_platform_search_hint = xy ]; then
  405.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  9C8B-5856
  406.     else
  407.       search --no-floppy --fs-uuid --set=root 9C8B-5856
  408.     fi
  409.     linux /vmlinuz-linux root=UUID=f4086375-c30c-43a9-a495-7657840da71e ro quiet splash $vt_handoff
  410.     initrd /initramfs-linux.img
  411.     init=/usr/lib/systemd/systemd
  412. }
  413. ### END /etc/grub.d/43_custom_proxy ###
  414.  
  415. ### BEGIN /etc/grub.d/44_custom ###
  416. if [ -f  ${config_directory}/custom.cfg ]; then
  417.   source ${config_directory}/custom.cfg
  418. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  419.   source $prefix/custom.cfg;
  420. fi
  421. ### END /etc/grub.d/44_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