Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2023
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 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. if [ "${next_entry}" ] ; then
  15. set default="${next_entry}"
  16. set next_entry=
  17. save_env next_entry
  18. set boot_once=true
  19. else
  20. set default="0"
  21. fi
  22.  
  23. if [ x"${feature_menuentry_id}" = xy ]; then
  24. menuentry_id_option="--id"
  25. else
  26. menuentry_id_option=""
  27. fi
  28.  
  29. export menuentry_id_option
  30.  
  31. if [ "${prev_saved_entry}" ]; then
  32. set saved_entry="${prev_saved_entry}"
  33. save_env saved_entry
  34. set prev_saved_entry=
  35. save_env prev_saved_entry
  36. set boot_once=true
  37. fi
  38.  
  39. function savedefault {
  40. if [ -z "${boot_once}" ]; then
  41. saved_entry="${chosen}"
  42. save_env saved_entry
  43. fi
  44. }
  45.  
  46. function load_video {
  47. if [ x$feature_all_video_module = xy ]; then
  48. insmod all_video
  49. else
  50. insmod efi_gop
  51. insmod efi_uga
  52. insmod ieee1275_fb
  53. insmod vbe
  54. insmod vga
  55. insmod video_bochs
  56. insmod video_cirrus
  57. fi
  58. }
  59.  
  60. if [ x$feature_default_font_path = xy ] ; then
  61. font=unicode
  62. else
  63. insmod part_gpt
  64. insmod btrfs
  65. set root='hd0,gpt3'
  66. if [ x$feature_platform_search_hint = xy ]; then
  67. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 c56d15f1-0a55-44c2-888a-267975f48825
  68. else
  69. search --no-floppy --fs-uuid --set=root c56d15f1-0a55-44c2-888a-267975f48825
  70. fi
  71. font="/usr/share/grub/unicode.pf2"
  72. fi
  73.  
  74. if loadfont $font ; then
  75. set gfxmode=auto
  76. load_video
  77. insmod gfxterm
  78. set locale_dir=$prefix/locale
  79. set lang=en_US
  80. insmod gettext
  81. fi
  82. terminal_input console
  83. terminal_output gfxterm
  84. insmod part_gpt
  85. insmod btrfs
  86. set root='hd0,gpt3'
  87. if [ x$feature_platform_search_hint = xy ]; then
  88. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 c56d15f1-0a55-44c2-888a-267975f48825
  89. else
  90. search --no-floppy --fs-uuid --set=root c56d15f1-0a55-44c2-888a-267975f48825
  91. fi
  92. insmod gfxmenu
  93. loadfont ($root)/usr/share/grub/themes/athena/hackb_18.pf2
  94. loadfont ($root)/usr/share/grub/themes/athena/norwester_16.pf2
  95. loadfont ($root)/usr/share/grub/themes/athena/norwester_20.pf2
  96. loadfont ($root)/usr/share/grub/themes/athena/norwester_22.pf2
  97. insmod png
  98. set theme=($root)/usr/share/grub/themes/athena/theme.txt
  99. export theme
  100. if [ x$feature_timeout_style = xy ] ; then
  101. set timeout_style=menu
  102. set timeout=5
  103. # Fallback normal timeout code in case the timeout_style feature is
  104. # unavailable.
  105. else
  106. set timeout=5
  107. fi
  108. ### END /etc/grub.d/00_header ###
  109.  
  110. ### BEGIN /etc/grub.d/10_linux ###
  111. menuentry 'Arch Linux' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c56d15f1-0a55-44c2-888a-267975f48825' {
  112. load_video
  113. set gfxpayload=keep
  114. insmod gzio
  115. insmod part_gpt
  116. insmod btrfs
  117. set root='hd0,gpt3'
  118. if [ x$feature_platform_search_hint = xy ]; then
  119. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 c56d15f1-0a55-44c2-888a-267975f48825
  120. else
  121. search --no-floppy --fs-uuid --set=root c56d15f1-0a55-44c2-888a-267975f48825
  122. fi
  123. echo 'Loading Linux linux-zen ...'
  124. linux /boot/vmlinuz-linux-zen root=UUID=c56d15f1-0a55-44c2-888a-267975f48825 rw quiet loglevel=3 audit=0 nvme_load=yes zswap.enabled=0 fbcon=nodefer nowatchdog
  125. echo 'Loading initial ramdisk ...'
  126. initrd /boot/intel-ucode.img /boot/initramfs-linux-zen.img
  127. }
  128. submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-c56d15f1-0a55-44c2-888a-267975f48825' {
  129. menuentry 'Arch Linux, with Linux linux-zen' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-zen-advanced-c56d15f1-0a55-44c2-888a-267975f48825' {
  130. load_video
  131. set gfxpayload=keep
  132. insmod gzio
  133. insmod part_gpt
  134. insmod btrfs
  135. set root='hd0,gpt3'
  136. if [ x$feature_platform_search_hint = xy ]; then
  137. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 c56d15f1-0a55-44c2-888a-267975f48825
  138. else
  139. search --no-floppy --fs-uuid --set=root c56d15f1-0a55-44c2-888a-267975f48825
  140. fi
  141. echo 'Loading Linux linux-zen ...'
  142. linux /boot/vmlinuz-linux-zen root=UUID=c56d15f1-0a55-44c2-888a-267975f48825 rw quiet loglevel=3 audit=0 nvme_load=yes zswap.enabled=0 fbcon=nodefer nowatchdog
  143. echo 'Loading initial ramdisk ...'
  144. initrd /boot/intel-ucode.img /boot/initramfs-linux-zen.img
  145. }
  146. menuentry 'Arch Linux, with Linux linux-zen (fallback initramfs)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-zen-fallback-c56d15f1-0a55-44c2-888a-267975f48825' {
  147. load_video
  148. set gfxpayload=keep
  149. insmod gzio
  150. insmod part_gpt
  151. insmod btrfs
  152. set root='hd0,gpt3'
  153. if [ x$feature_platform_search_hint = xy ]; then
  154. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 c56d15f1-0a55-44c2-888a-267975f48825
  155. else
  156. search --no-floppy --fs-uuid --set=root c56d15f1-0a55-44c2-888a-267975f48825
  157. fi
  158. echo 'Loading Linux linux-zen ...'
  159. linux /boot/vmlinuz-linux-zen root=UUID=c56d15f1-0a55-44c2-888a-267975f48825 rw quiet loglevel=3 audit=0 nvme_load=yes zswap.enabled=0 fbcon=nodefer nowatchdog
  160. echo 'Loading initial ramdisk ...'
  161. initrd /boot/intel-ucode.img /boot/initramfs-linux-zen-fallback.img
  162. }
  163. }
  164.  
  165. ### END /etc/grub.d/10_linux ###
  166.  
  167. ### BEGIN /etc/grub.d/20_linux_xen ###
  168. ### END /etc/grub.d/20_linux_xen ###
  169.  
  170. ### BEGIN /etc/grub.d/25_bli ###
  171. if [ "$grub_platform" = "efi" ]; then
  172. insmod bli
  173. fi
  174. ### END /etc/grub.d/25_bli ###
  175.  
  176. ### BEGIN /etc/grub.d/30_os-prober ###
  177. ### END /etc/grub.d/30_os-prober ###
  178.  
  179. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  180. if [ "$grub_platform" = "efi" ]; then
  181. fwsetup --is-supported
  182. if [ "$?" = 0 ]; then
  183. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  184. fwsetup
  185. }
  186. fi
  187. fi
  188. ### END /etc/grub.d/30_uefi-firmware ###
  189.  
  190. ### BEGIN /etc/grub.d/40_custom ###
  191. exec tail -n +3 $0
  192. # This file provides an easy way to add custom menu entries. Simply type the
  193. # menu entries you want to add after this comment. Be careful not to change
  194. # the 'exec tail' line above.
  195.  
  196. menuentry "Restart" --class reboot --class restart {
  197. echo "System rebooting..."
  198. reboot
  199. }
  200.  
  201. menuentry "Shutdown" --class poweroff --class shutdown {
  202. echo "System shutting down..."
  203. halt
  204. }
  205.  
  206.  
  207. ### END /etc/grub.d/40_custom ###
  208.  
  209. ### BEGIN /etc/grub.d/41_custom ###
  210. if [ -f ${config_directory}/custom.cfg ]; then
  211. source ${config_directory}/custom.cfg
  212. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  213. source $prefix/custom.cfg
  214. fi
  215. ### END /etc/grub.d/41_custom ###
  216.  
  217. ### BEGIN /etc/grub.d/41_snapshots-btrfs ###
  218. if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then
  219. echo ""
  220. else
  221. submenu 'Arch Linux snapshots' {
  222. configfile "${prefix}/grub-btrfs.cfg"
  223. }
  224. fi
  225. ### END /etc/grub.d/41_snapshots-btrfs ###
  226.  
  227. ### BEGIN /etc/grub.d/60_memtest86+ ###
  228. if [ "${grub_platform}" == "pc" ]; then
  229. menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
  230. search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 c56d15f1-0a55-44c2-888a-267975f48825
  231. linux16 /boot/memtest86+/memtest.bin
  232. }
  233. fi
  234. ### END /etc/grub.d/60_memtest86+ ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement