SHARE
TWEET

Untitled

a guest Feb 27th, 2020 78 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 grub2-mkconfig using templates
  5. # from /etc/grub.d and settings from /etc/default/grub
  6. #
  7.  
  8. ### BEGIN /etc/grub.d/00_header ###
  9. set pager=1
  10.  
  11. if [ -f ${config_directory}/grubenv ]; then
  12.   load_env -f ${config_directory}/grubenv
  13. elif [ -s $prefix/grubenv ]; then
  14.   load_env
  15. fi
  16. if [ "${next_entry}" ] ; then
  17.    set default="${next_entry}"
  18.    set next_entry=
  19.    save_env next_entry
  20.    set boot_once=true
  21. else
  22.    set default="Windows 10 (on /dev/sda1)"
  23. fi
  24.  
  25. if [ x"${feature_menuentry_id}" = xy ]; then
  26.   menuentry_id_option="--id"
  27. else
  28.   menuentry_id_option=""
  29. fi
  30.  
  31. export menuentry_id_option
  32.  
  33. if [ "${prev_saved_entry}" ]; then
  34.   set saved_entry="${prev_saved_entry}"
  35.   save_env saved_entry
  36.   set prev_saved_entry=
  37.   save_env prev_saved_entry
  38.   set boot_once=true
  39. fi
  40.  
  41. function savedefault {
  42.   if [ -z "${boot_once}" ]; then
  43.     saved_entry="${chosen}"
  44.     save_env saved_entry
  45.   fi
  46. }
  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. terminal_output console
  63. if [ x$feature_timeout_style = xy ] ; then
  64.   set timeout_style=menu
  65.   set timeout=5
  66. # Fallback normal timeout code in case the timeout_style feature is
  67. # unavailable.
  68. else
  69.   set timeout=5
  70. fi
  71. ### END /etc/grub.d/00_header ###
  72.  
  73. ### BEGIN /etc/grub.d/01_users ###
  74. if [ -f ${prefix}/user.cfg ]; then
  75.   source ${prefix}/user.cfg
  76.   if [ -n "${GRUB2_PASSWORD}" ]; then
  77.     set superusers="root"
  78.     export superusers
  79.     password_pbkdf2 root ${GRUB2_PASSWORD}
  80.   fi
  81. fi
  82. ### END /etc/grub.d/01_users ###
  83.  
  84. ### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
  85. ### END /etc/grub.d/06_grub-customizer_menu_color_helper ###
  86.  
  87. ### BEGIN /etc/grub.d/08_fallback_counting ###
  88. insmod increment
  89. # Check if boot_counter exists and boot_success=0 to activate this behaviour.
  90. if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
  91.   # if countdown has ended, choose to boot rollback deployment,
  92.   # i.e. default=1 on OSTree-based systems.
  93.   if  [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
  94.     set default=1
  95.     set boot_counter=-1
  96.   # otherwise decrement boot_counter
  97.   else
  98.     decrement boot_counter
  99.   fi
  100.   save_env boot_counter
  101. fi
  102. ### END /etc/grub.d/08_fallback_counting ###
  103.  
  104. ### BEGIN /etc/grub.d/10_linux ###
  105. insmod part_msdos
  106. insmod ext2
  107. set root='hd0,msdos5'
  108. if [ x$feature_platform_search_hint = xy ]; then
  109.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  aa039dd4-4547-4c04-b268-8bf499765518
  110. else
  111.   search --no-floppy --fs-uuid --set=root aa039dd4-4547-4c04-b268-8bf499765518
  112. fi
  113. insmod part_msdos
  114. insmod ext2
  115. set boot='hd0,msdos5'
  116. if [ x$feature_platform_search_hint = xy ]; then
  117.   search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  aa039dd4-4547-4c04-b268-8bf499765518
  118. else
  119.   search --no-floppy --fs-uuid --set=boot aa039dd4-4547-4c04-b268-8bf499765518
  120. fi
  121.  
  122. # This section was generated by a script. Do not modify the generated file - all changes
  123. # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
  124. #
  125. # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
  126. # populates the boot menu. Please refer to the Boot Loader Specification documentation
  127. # for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/.
  128.  
  129. set default_kernelopts="root=/dev/mapper/fedora_localhost--live-root ro resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.lvm.lv=fedora_localhost-live/swap rhgb quiet "
  130.  
  131. insmod blscfg
  132. blscfg
  133. ### END /etc/grub.d/10_linux ###
  134.  
  135. ### BEGIN /etc/grub.d/10_reset_boot_success ###
  136. # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
  137. if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  138.   set menu_hide_ok=1
  139. else
  140.   set menu_hide_ok=0
  141. fi
  142. # Reset boot_indeterminate after a successful boot
  143. if [ "${boot_success}" = "1" ] ; then
  144.   set boot_indeterminate=0
  145. # Avoid boot_indeterminate causing the menu to be hidden more then once
  146. elif [ "${boot_indeterminate}" = "1" ]; then
  147.   set boot_indeterminate=2
  148. fi
  149. # Reset boot_success for current boot
  150. set boot_success=0
  151. save_env boot_success boot_indeterminate
  152. ### END /etc/grub.d/10_reset_boot_success ###
  153.  
  154. ### BEGIN /etc/grub.d/12_menu_auto_hide ###
  155. if [ x$feature_timeout_style = xy ] ; then
  156.   if [ "${menu_show_once}" ]; then
  157.     unset menu_show_once
  158.     save_env menu_show_once
  159.     set timeout_style=menu
  160.     set timeout=60
  161.   elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
  162.     set orig_timeout_style=${timeout_style}
  163.     set orig_timeout=${timeout}
  164.     if [ "${fastboot}" = "1" ]; then
  165.       # timeout_style=menu + timeout=0 avoids the countdown code keypress check
  166.       set timeout_style=menu
  167.       set timeout=0
  168.     else
  169.       set timeout_style=hidden
  170.       set timeout=1
  171.     fi
  172.   fi
  173. fi
  174. ### END /etc/grub.d/12_menu_auto_hide ###
  175.  
  176. ### BEGIN /etc/grub.d/20_linux_xen ###
  177.  
  178. ### END /etc/grub.d/20_linux_xen ###
  179.  
  180. ### BEGIN /etc/grub.d/20_ppc_terminfo ###
  181. ### END /etc/grub.d/20_ppc_terminfo ###
  182.  
  183. ### BEGIN /etc/grub.d/30_os-prober ###
  184. menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-8E9406859406704F' {
  185.     insmod part_msdos
  186.     insmod ntfs
  187.     set root='hd0,msdos1'
  188.     if [ x$feature_platform_search_hint = xy ]; then
  189.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  8E9406859406704F
  190.     else
  191.       search --no-floppy --fs-uuid --set=root 8E9406859406704F
  192.     fi
  193.     parttool ${root} hidden-
  194.     drivemap -s (hd0) ${root}
  195.     chainloader +1
  196. }
  197. # Other OS found, undo autohiding of menu unless menu_auto_hide=2
  198. if [ "${orig_timeout_style}" -a "${menu_auto_hide}" != "2" ]; then
  199.   set timeout_style=${orig_timeout_style}
  200.   set timeout=${orig_timeout}
  201. fi
  202. ### END /etc/grub.d/30_os-prober ###
  203.  
  204. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  205. ### END /etc/grub.d/30_uefi-firmware ###
  206.  
  207. ### BEGIN /etc/grub.d/40_custom ###
  208. # This file provides an easy way to add custom menu entries.  Simply type the
  209. # menu entries you want to add after this comment.  Be careful not to change
  210. # the 'exec tail' line above.
  211. ### END /etc/grub.d/40_custom ###
  212.  
  213. ### BEGIN /etc/grub.d/41_custom ###
  214. if [ -f  ${config_directory}/custom.cfg ]; then
  215.   source ${config_directory}/custom.cfg
  216. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  217.   source $prefix/custom.cfg;
  218. fi
  219. ### 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