Guest User

grub

a guest
Oct 5th, 2026
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.70 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. insmod part_gpt
  10. insmod part_msdos
  11. if [ -s $prefix/grubenv ]; then
  12. load_env
  13. fi
  14.  
  15. if [ "${env_block}" ] ; then
  16. set env_block="(${root})${env_block}"
  17. export env_block
  18. load_env -f "${env_block}"
  19. fi
  20.  
  21. if [ "${next_entry}" ] ; then
  22. set default="${next_entry}"
  23. set next_entry=
  24. if [ "${env_block}" ] ; then
  25. save_env -f "${env_block}" next_entry
  26. else
  27. save_env next_entry
  28. fi
  29. set boot_once=true
  30. else
  31. set default="0"
  32. fi
  33.  
  34. if [ x"${feature_menuentry_id}" = xy ]; then
  35. menuentry_id_option="--id"
  36. else
  37. menuentry_id_option=""
  38. fi
  39.  
  40. export menuentry_id_option
  41.  
  42. if [ "${prev_saved_entry}" ]; then
  43. set saved_entry="${prev_saved_entry}"
  44. save_env saved_entry
  45. set prev_saved_entry=
  46. save_env prev_saved_entry
  47. set boot_once=true
  48. fi
  49.  
  50. function savedefault {
  51. if [ -z "${boot_once}" ]; then
  52. saved_entry="${chosen}"
  53. if [ "${env_block}" ] ; then
  54. save_env -f "${env_block}" saved_entry
  55. else
  56. save_env saved_entry
  57. fi
  58.  
  59. fi
  60. }
  61.  
  62. function load_video {
  63. if [ x$grub_platform = xefi ]; then
  64. insmod efi_gop
  65. elif [ x$feature_all_video_module = xy ]; then
  66. insmod all_video
  67. else
  68. insmod efi_gop
  69. insmod ieee1275_fb
  70. insmod vbe
  71. insmod vga
  72. insmod video_bochs
  73. insmod video_cirrus
  74. fi
  75. }
  76.  
  77. if [ x$feature_default_font_path = xy ] ; then
  78. font=unicode
  79. else
  80. insmod part_gpt
  81. insmod part_gpt
  82. insmod lvm
  83. insmod ext2
  84. set root='lvmid/P3T6wY-GKVR-6km5-vnhH-k9Nz-CD4L-x0HmcN/quQR0X-Ieow-90Om-WSD8-2hRf-6QqR-m591O4'
  85. if [ x$feature_platform_search_hint = xy ]; then
  86. search --no-floppy --fs-uuid --set=root --hint='lvmid/P3T6wY-GKVR-6km5-vnhH-k9Nz-CD4L-x0HmcN/quQR0X-Ieow-90Om-WSD8-2hRf-6QqR-m591O4' bc7b9d68-131f-4f08-8a5d-64cafaf333a6
  87. else
  88. search --no-floppy --fs-uuid --set=root bc7b9d68-131f-4f08-8a5d-64cafaf333a6
  89. fi
  90. font="/usr/share/grub/unicode.pf2"
  91. fi
  92.  
  93. if loadfont $font ; then
  94. set gfxmode=auto
  95. load_video
  96. insmod gfxterm
  97. set locale_dir=$prefix/locale
  98. set lang=en_US
  99. insmod gettext
  100. fi
  101. terminal_input console
  102. terminal_output gfxterm
  103. if [ x$feature_timeout_style = xy ] ; then
  104. set timeout_style=menu
  105. set timeout=5
  106. # Fallback normal timeout code in case the timeout_style feature is
  107. # unavailable.
  108. else
  109. set timeout=5
  110. fi
  111. ### END /etc/grub.d/00_header ###
  112.  
  113. ### BEGIN /etc/grub.d/15_uki ###
  114. if [ "$grub_platform" = "efi" ]; then
  115. uki
  116. fi
  117. ### END /etc/grub.d/15_uki ###
  118.  
  119. ### BEGIN /etc/grub.d/20_linux_xen ###
  120. ### END /etc/grub.d/20_linux_xen ###
  121.  
  122. ### BEGIN /etc/grub.d/25_bli ###
  123. if [ "$grub_platform" = "efi" ]; then
  124. insmod bli
  125. fi
  126. ### END /etc/grub.d/25_bli ###
  127.  
  128. ### BEGIN /etc/grub.d/30_os-prober ###
  129. ### END /etc/grub.d/30_os-prober ###
  130.  
  131. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  132. if [ "$grub_platform" = "efi" ]; then
  133. fwsetup --is-supported
  134. if [ "$?" = 0 ]; then
  135. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  136. fwsetup
  137. }
  138. fi
  139. fi
  140. ### END /etc/grub.d/30_uefi-firmware ###
  141.  
  142. ### BEGIN /etc/grub.d/31_efi_bootnext ###
  143. if [ "$grub_platform" = "efi" ]; then
  144. menuentry 'MsTemp (EFI BootNext)' --class mstemp --class os $menuentry_id_option 'efi-bootnext-0000' {
  145. if bootnext 0000; then
  146.  
  147. reboot
  148. fi
  149. }
  150. fi
  151. if [ "$grub_platform" = "efi" ]; then
  152. menuentry 'Internal Storage (EFI BootNext)' --class internal --class os $menuentry_id_option 'efi-bootnext-0001' {
  153. if bootnext 0001; then
  154.  
  155. reboot
  156. fi
  157. }
  158. fi
  159. if [ "$grub_platform" = "efi" ]; then
  160. menuentry 'USB Storage (EFI BootNext)' --class usb --class os $menuentry_id_option 'efi-bootnext-0002' {
  161. if bootnext 0002; then
  162.  
  163. reboot
  164. fi
  165. }
  166. fi
  167. if [ "$grub_platform" = "efi" ]; then
  168. menuentry 'PXE Network (EFI BootNext)' --class pxe --class os $menuentry_id_option 'efi-bootnext-0003' {
  169. if bootnext 0003; then
  170.  
  171. reboot
  172. fi
  173. }
  174. fi
  175. if [ "$grub_platform" = "efi" ]; then
  176. menuentry 'Linux Boot Manager (EFI BootNext)' --class linux --class os $menuentry_id_option 'efi-bootnext-0004' {
  177. if bootnext 0004; then
  178.  
  179. reboot
  180. fi
  181. }
  182. fi
  183. if [ "$grub_platform" = "efi" ]; then
  184. menuentry 'Windows Boot Manager (EFI BootNext)' --class windows --class os $menuentry_id_option 'efi-bootnext-0005' {
  185. if bootnext 0005; then
  186.  
  187. reboot
  188. fi
  189. }
  190. fi
  191. if [ "$grub_platform" = "efi" ]; then
  192. menuentry 'Linux Boot Manager (EFI BootNext)' --class linux --class os $menuentry_id_option 'efi-bootnext-0006' {
  193. if bootnext 0006; then
  194.  
  195. reboot
  196. fi
  197. }
  198. fi
  199. if [ "$grub_platform" = "efi" ]; then
  200. menuentry 'Fallback Linux Boot Manager (EFI BootNext)' --class fallback --class os $menuentry_id_option 'efi-bootnext-0007' {
  201. if bootnext 0007; then
  202.  
  203. reboot
  204. fi
  205. }
  206. fi
  207. if [ "$grub_platform" = "efi" ]; then
  208. menuentry 'Fallback Linux Boot Manager (EFI BootNext)' --class fallback --class os $menuentry_id_option 'efi-bootnext-0008' {
  209. if bootnext 0008; then
  210.  
  211. reboot
  212. fi
  213. }
  214. fi
  215. ### END /etc/grub.d/31_efi_bootnext ###
  216.  
  217. ### BEGIN /etc/grub.d/40_custom ###
  218. # This file provides an easy way to add custom menu entries. Simply type the
  219. # menu entries you want to add after this comment. Be careful not to change
  220. # the 'exec tail' line above.
  221. ### END /etc/grub.d/40_custom ###
  222.  
  223. ### BEGIN /etc/grub.d/41_custom ###
  224. if [ -f ${config_directory}/custom.cfg ]; then
  225. source ${config_directory}/custom.cfg
  226. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  227. source $prefix/custom.cfg
  228. fi
  229. ### END /etc/grub.d/41_custom ###
  230.  
Advertisement
Add Comment
Please, Sign In to add comment