Advertisement
Guest User

grub2.cfg

a guest
Jun 15th, 2022
8
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="${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_gpt
  103. insmod part_gpt
  104. insmod diskfilter
  105. insmod mdraid09
  106. insmod ext2
  107. set root='mduuid/d729b00d592c7ddf36f1251723d58c4f'
  108. if [ x$feature_platform_search_hint = xy ]; then
  109. search --no-floppy --fs-uuid --set=root --hint='mduuid/d729b00d592c7ddf36f1251723d58c4f' cd0e1b16-85f6-403f-8704-1b6a652586fe
  110. else
  111. search --no-floppy --fs-uuid --set=root cd0e1b16-85f6-403f-8704-1b6a652586fe
  112. fi
  113. insmod part_gpt
  114. insmod fat
  115. set boot='hd0,gpt1'
  116. if [ x$feature_platform_search_hint = xy ]; then
  117. search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1' 198E-FA51
  118. else
  119. search --no-floppy --fs-uuid --set=boot 198E-FA51
  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://systemd.io/BOOT_LOADER_SPECIFICATION/.
  128.  
  129. # The kernelopts variable should be defined in the grubenv file. But to ensure that menu
  130. # entries populated from BootLoaderSpec files that use this variable work correctly even
  131. # without a grubenv file, define a fallback kernelopts variable if this has not been set.
  132. #
  133. # The kernelopts variable in the grubenv file can be modified using the grubby tool or by
  134. # executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX
  135. # and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both
  136. # the kernelopts variable in the grubenv file and the fallback kernelopts variable.
  137. if [ -z "${kernelopts}" ]; then
  138. set kernelopts="root=UUID=cd0e1b16-85f6-403f-8704-1b6a652586fe ro rhgb quiet "
  139. fi
  140.  
  141. insmod blscfg
  142. blscfg
  143. ### END /etc/grub.d/10_linux ###
  144.  
  145. ### BEGIN /etc/grub.d/10_reset_boot_success ###
  146. # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
  147. if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  148. set menu_hide_ok=1
  149. else
  150. set menu_hide_ok=0
  151. fi
  152. # Reset boot_indeterminate after a successful boot
  153. if [ "${boot_success}" = "1" ] ; then
  154. set boot_indeterminate=0
  155. # Avoid boot_indeterminate causing the menu to be hidden more than once
  156. elif [ "${boot_indeterminate}" = "1" ]; then
  157. set boot_indeterminate=2
  158. fi
  159. # Reset boot_success for current boot
  160. set boot_success=0
  161. save_env boot_success boot_indeterminate
  162. ### END /etc/grub.d/10_reset_boot_success ###
  163.  
  164. ### BEGIN /etc/grub.d/12_menu_auto_hide ###
  165. if [ x$feature_timeout_style = xy ] ; then
  166. if [ "${menu_show_once}" ]; then
  167. unset menu_show_once
  168. save_env menu_show_once
  169. set timeout_style=menu
  170. set timeout=60
  171. elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
  172. set orig_timeout_style=${timeout_style}
  173. set orig_timeout=${timeout}
  174. if [ "${fastboot}" = "1" ]; then
  175. # timeout_style=menu + timeout=0 avoids the countdown code keypress check
  176. set timeout_style=menu
  177. set timeout=0
  178. else
  179. set timeout_style=hidden
  180. set timeout=1
  181. fi
  182. fi
  183. fi
  184. ### END /etc/grub.d/12_menu_auto_hide ###
  185.  
  186. ### BEGIN /etc/grub.d/14_menu_show_once ###
  187. if [ x$feature_timeout_style = xy ]; then
  188. if [ "${menu_show_once_timeout}" ]; then
  189. set timeout_style=menu
  190. set timeout="${menu_show_once_timeout}"
  191. unset menu_show_once_timeout
  192. save_env menu_show_once_timeout
  193. fi
  194. fi
  195. ### END /etc/grub.d/14_menu_show_once ###
  196.  
  197. ### BEGIN /etc/grub.d/20_linux_xen ###
  198.  
  199. ### END /etc/grub.d/20_linux_xen ###
  200.  
  201. ### BEGIN /etc/grub.d/20_ppc_terminfo ###
  202. ### END /etc/grub.d/20_ppc_terminfo ###
  203.  
  204. ### BEGIN /etc/grub.d/30_os-prober ###
  205. ### END /etc/grub.d/30_os-prober ###
  206.  
  207. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  208. if [ "$grub_platform" = "efi" ]; then
  209. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  210. fwsetup
  211. }
  212. fi
  213. ### END /etc/grub.d/30_uefi-firmware ###
  214.  
  215. ### BEGIN /etc/grub.d/40_custom ###
  216. # This file provides an easy way to add custom menu entries. Simply type the
  217. # menu entries you want to add after this comment. Be careful not to change
  218. # the 'exec tail' line above.
  219. ### END /etc/grub.d/40_custom ###
  220.  
  221. ### BEGIN /etc/grub.d/41_custom ###
  222. if [ -f ${config_directory}/custom.cfg ]; then
  223. source ${config_directory}/custom.cfg
  224. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  225. source $prefix/custom.cfg
  226. fi
  227. ### END /etc/grub.d/41_custom ###
Advertisement
RAW Paste Data Copied
Advertisement