Guest User

Untitled

a guest
Jul 15th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.59 KB | None | 0 0
  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="${saved_entry}"
  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/08_fallback_counting ###
  85. insmod increment
  86. # Check if boot_counter exists and boot_success=0 to activate this behaviour.
  87. if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
  88.   # if countdown has ended, choose to boot rollback deployment,
  89.   # i.e. default=1 on OSTree-based systems.
  90.   if  [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
  91.     set default=1
  92.     set boot_counter=-1
  93.   # otherwise decrement boot_counter
  94.   else
  95.     decrement boot_counter
  96.   fi
  97.   save_env boot_counter
  98. fi
  99. ### END /etc/grub.d/08_fallback_counting ###
  100.  
  101. ### BEGIN /etc/grub.d/10_linux ###
  102. insmod part_msdos
  103. insmod ext2
  104. set root='hd0,msdos3'
  105. if [ x$feature_platform_search_hint = xy ]; then
  106.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  f8fb7169-66ce-4f45-92d8-1a4e4b6729e1
  107. else
  108.   search --no-floppy --fs-uuid --set=root f8fb7169-66ce-4f45-92d8-1a4e4b6729e1
  109. fi
  110. insmod part_msdos
  111. insmod ext2
  112. set boot='hd0,msdos3'
  113. if [ x$feature_platform_search_hint = xy ]; then
  114.   search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  f8fb7169-66ce-4f45-92d8-1a4e4b6729e1
  115. else
  116.   search --no-floppy --fs-uuid --set=boot f8fb7169-66ce-4f45-92d8-1a4e4b6729e1
  117. fi
  118.  
  119. # This section was generated by a script. Do not modify the generated file - all changes
  120. # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
  121. #
  122. # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
  123. # populates the boot menu. Please refer to the Boot Loader Specification documentation
  124. # for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/.
  125.  
  126. set default_kernelopts="root=/dev/mapper/fedora-root ro resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet "
  127.  
  128. insmod blscfg
  129. blscfg
  130. if [ -s $prefix/grubenv ]; then
  131.   load_env
  132. fi
  133. ### END /etc/grub.d/10_linux ###
  134.  
  135. ### BEGIN /etc/grub.d/10_reset_boot_success ###
  136. insmod increment
  137. # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
  138. if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  139.   set menu_hide_ok=1
  140. else
  141.   set menu_hide_ok=0
  142. fi
  143. # Reset boot_indeterminate after a successful boot, increment otherwise
  144. if [ "${boot_success}" = "1" ] ; then
  145.   set boot_indeterminate=0
  146. else
  147.   increment boot_indeterminate
  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-847038EC7038E718' {
  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'  847038EC7038E718
  190.     else
  191.       search --no-floppy --fs-uuid --set=root 847038EC7038E718
  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 ###
Add Comment
Please, Sign In to add comment