sholizar

Untitled

Aug 7th, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.19 KB | None | 0 0
  1. cat /boot/grub/grub.cfg
  2. #
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # It is automatically generated by grub-mkconfig using templates
  6. # from /etc/grub.d and settings from /etc/default/grub
  7. #
  8.  
  9. ### BEGIN /etc/grub.d/00_header ###
  10. insmod part_gpt
  11. insmod part_msdos
  12. if [ -s $prefix/grubenv ]; then
  13. load_env
  14. fi
  15. if [ "${next_entry}" ] ; then
  16. set default="${next_entry}"
  17. set next_entry=
  18. save_env next_entry
  19. set boot_once=true
  20. else
  21. set default="Arch Linux"
  22. fi
  23.  
  24. if [ x"${feature_menuentry_id}" = xy ]; then
  25. menuentry_id_option="--id"
  26. else
  27. menuentry_id_option=""
  28. fi
  29.  
  30. export menuentry_id_option
  31.  
  32. if [ "${prev_saved_entry}" ]; then
  33. set saved_entry="${prev_saved_entry}"
  34. save_env saved_entry
  35. set prev_saved_entry=
  36. save_env prev_saved_entry
  37. set boot_once=true
  38. fi
  39.  
  40. function savedefault {
  41. if [ -z "${boot_once}" ]; then
  42. saved_entry="${chosen}"
  43. save_env saved_entry
  44. fi
  45. }
  46.  
  47. function load_video {
  48. if [ x$feature_all_video_module = xy ]; then
  49. insmod all_video
  50. else
  51. insmod efi_gop
  52. insmod efi_uga
  53. insmod ieee1275_fb
  54. insmod vbe
  55. insmod vga
  56. insmod video_bochs
  57. insmod video_cirrus
  58. fi
  59. }
  60.  
  61. if [ x$feature_default_font_path = xy ] ; then
  62. font=unicode
  63. else
  64. insmod part_gpt
  65. insmod cryptodisk
  66. insmod luks2
  67. insmod gcry_rijndael
  68. insmod gcry_rijndael
  69. insmod gcry_sha256
  70. insmod ext2
  71. cryptomount -u 618eb30d-0494-42f1-8932-547483ca6f16
  72. set root='cryptouuid/618eb30d049442f18932547483ca6f16'
  73. if [ x$feature_platform_search_hint = xy ]; then
  74. search --no-floppy --fs-uuid --set=root --hint='cryptouuid/618eb30d049442f18932547483ca6f16' a5a9e715-0fb5-4de9-acb4-71eea8a32f7a
  75. else
  76. search --no-floppy --fs-uuid --set=root a5a9e715-0fb5-4de9-acb4-71eea8a32f7a
  77. fi
  78. font="/usr/share/grub/unicode.pf2"
  79. fi
  80.  
  81. if loadfont $font ; then
  82. set gfxmode=auto
  83. load_video
  84. insmod gfxterm
  85. fi
  86. terminal_input console
  87. terminal_output gfxterm
  88. if [ x$feature_timeout_style = xy ] ; then
  89. set timeout_style=menu
  90. set timeout=4
  91. # Fallback normal timeout code in case the timeout_style feature is
  92. # unavailable.
  93. else
  94. set timeout=4
  95. fi
  96. ### END /etc/grub.d/00_header ###
  97.  
  98. ### BEGIN /etc/grub.d/01_grub-customizer_menu_color_helper ###
  99. ### END /etc/grub.d/01_grub-customizer_menu_color_helper ###
  100.  
  101. ### BEGIN /etc/grub.d/02_linux_proxy ###
  102.  
  103.  
  104.  
  105.  
  106. menuentry "Arch Linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a5a9e715-0fb5-4de9-acb4-71eea8a32f7a' {
  107. load_video
  108. set gfxpayload=keep
  109. insmod gzio
  110. insmod part_gpt
  111. insmod cryptodisk
  112. insmod luks2
  113. insmod gcry_rijndael
  114. insmod gcry_rijndael
  115. insmod gcry_sha256
  116. insmod ext2
  117. cryptomount -u 618eb30d-0494-42f1-8932-547483ca6f16
  118. set root='cryptouuid/618eb30d049442f18932547483ca6f16'
  119. if [ x$feature_platform_search_hint = xy ]; then
  120. search --no-floppy --fs-uuid --set=root --hint='cryptouuid/618eb30d049442f18932547483ca6f16' a5a9e715-0fb5-4de9-acb4-71eea8a32f7a
  121. else
  122. search --no-floppy --fs-uuid --set=root a5a9e715-0fb5-4de9-acb4-71eea8a32f7a
  123. fi
  124. echo 'Loading Linux linux ...'
  125. linux /boot/vmlinuz-linux root=UUID=a5a9e715-0fb5-4de9-acb4-71eea8a32f7a rw loglevel=3 quiet cryptdevice=UUID=618eb30d-0494-42f1-8932-547483ca6f16:crypted_root
  126. echo 'Loading initial ramdisk ...'
  127. initrd /boot/initramfs-linux.img
  128. }
  129. ### END /etc/grub.d/02_linux_proxy ###
  130.  
  131. ### BEGIN /etc/grub.d/25_bli ###
  132. if [ "$grub_platform" = "efi" ]; then
  133. insmod bli
  134. fi
  135. ### END /etc/grub.d/25_bli ###
  136.  
  137. ### BEGIN /etc/grub.d/26_custom ###
  138. # This file provides an easy way to add custom menu entries. Simply type the
  139. # menu entries you want to add after this comment. Be careful not to change
  140. # the 'exec tail' line above.
  141. ### END /etc/grub.d/26_custom ###
  142.  
  143. ### BEGIN /etc/grub.d/40_custom_proxy ###
  144. menuentry "Windows 11 - (on /dev/nvme0n1p1)" --class windows --class os $menuentry_id_option 'osprober-efi-E294-AEEA' {
  145. insmod part_gpt
  146. insmod fat
  147. search --no-floppy --fs-uuid --set=root E294-AEEA
  148. chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  149. }
  150. ### END /etc/grub.d/40_custom_proxy ###
  151.  
  152. ### BEGIN /etc/grub.d/41_linux_proxy ###
  153. submenu "Advanced options for Arch Linux"{
  154. menuentry "Arch Linux, with Linux linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-a5a9e715-0fb5-4de9-acb4-71eea8a32f7a' {
  155. load_video
  156. set gfxpayload=keep
  157. insmod gzio
  158. insmod part_gpt
  159. insmod cryptodisk
  160. insmod luks2
  161. insmod gcry_rijndael
  162. insmod gcry_rijndael
  163. insmod gcry_sha256
  164. insmod ext2
  165. cryptomount -u 618eb30d-0494-42f1-8932-547483ca6f16
  166. set root='cryptouuid/618eb30d049442f18932547483ca6f16'
  167. if [ x$feature_platform_search_hint = xy ]; then
  168. search --no-floppy --fs-uuid --set=root --hint='cryptouuid/618eb30d049442f18932547483ca6f16' a5a9e715-0fb5-4de9-acb4-71eea8a32f7a
  169. else
  170. search --no-floppy --fs-uuid --set=root a5a9e715-0fb5-4de9-acb4-71eea8a32f7a
  171. fi
  172. echo 'Loading Linux linux ...'
  173. linux /boot/vmlinuz-linux root=UUID=a5a9e715-0fb5-4de9-acb4-71eea8a32f7a rw loglevel=3 quiet cryptdevice=UUID=618eb30d-0494-42f1-8932-547483ca6f16:crypted_root
  174. echo 'Loading initial ramdisk ...'
  175. initrd /boot/initramfs-linux.img
  176. }
  177. menuentry "Arch Linux, with Linux linux (fallback initramfs)" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-a5a9e715-0fb5-4de9-acb4-71eea8a32f7a' {
  178. load_video
  179. set gfxpayload=keep
  180. insmod gzio
  181. insmod part_gpt
  182. insmod cryptodisk
  183. insmod luks2
  184. insmod gcry_rijndael
  185. insmod gcry_rijndael
  186. insmod gcry_sha256
  187. insmod ext2
  188. cryptomount -u 618eb30d-0494-42f1-8932-547483ca6f16
  189. set root='cryptouuid/618eb30d049442f18932547483ca6f16'
  190. if [ x$feature_platform_search_hint = xy ]; then
  191. search --no-floppy --fs-uuid --set=root --hint='cryptouuid/618eb30d049442f18932547483ca6f16' a5a9e715-0fb5-4de9-acb4-71eea8a32f7a
  192. else
  193. search --no-floppy --fs-uuid --set=root a5a9e715-0fb5-4de9-acb4-71eea8a32f7a
  194. fi
  195. echo 'Loading Linux linux ...'
  196. linux /boot/vmlinuz-linux root=UUID=a5a9e715-0fb5-4de9-acb4-71eea8a32f7a rw loglevel=3 quiet cryptdevice=UUID=618eb30d-0494-42f1-8932-547483ca6f16:crypted_root
  197. echo 'Loading initial ramdisk ...'
  198. initrd /boot/initramfs-linux-fallback.img
  199. }
  200. }
  201. ### END /etc/grub.d/41_linux_proxy ###
  202.  
  203. ### BEGIN /etc/grub.d/42_linux_xen ###
  204. ### END /etc/grub.d/42_linux_xen ###
  205.  
  206. ### BEGIN /etc/grub.d/43_os-prober ###
  207. ### END /etc/grub.d/43_os-prober ###
  208.  
  209. ### BEGIN /etc/grub.d/44_uefi-firmware ###
  210. if [ "$grub_platform" = "efi" ]; then
  211. fwsetup --is-supported
  212. if [ "$?" = 0 ]; then
  213. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  214. fwsetup
  215. }
  216. fi
  217. fi
  218. ### END /etc/grub.d/44_uefi-firmware ###
  219.  
  220. ### BEGIN /etc/grub.d/45_custom_proxy ###
  221.  
  222. # This file provides an easy way to add custom menu entries. Simply type the
  223. # menu entries you want to add after this comment. Be careful not to change
  224. # the 'exec tail' line above.
  225.  
  226. ### END /etc/grub.d/45_custom_proxy ###
  227.  
  228. ### BEGIN /etc/grub.d/46_custom ###
  229. if [ -f ${config_directory}/custom.cfg ]; then
  230. source ${config_directory}/custom.cfg
  231. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  232. source $prefix/custom.cfg
  233. fi
  234. ### END /etc/grub.d/46_custom ###
  235.  
Advertisement
Add Comment
Please, Sign In to add comment