Guest User

grub

a guest
Feb 17th, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.01 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. search --no-floppy --fs-uuid --set=root 065a3401-3bd3-47b2-883d-92b3be29e1f8
  66. font="/timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/usr/share/grub/unicode.pf2"
  67. fi
  68.  
  69. if loadfont $font ; then
  70. set gfxmode=auto
  71. load_video
  72. insmod gfxterm
  73. set locale_dir=$prefix/locale
  74. set lang=en_GB
  75. insmod gettext
  76. fi
  77. terminal_input console
  78. terminal_output gfxterm
  79. if [ x$feature_timeout_style = xy ] ; then
  80. set timeout_style=menu
  81. set timeout=5
  82. # Fallback normal timeout code in case the timeout_style feature is
  83. # unavailable.
  84. else
  85. set timeout=5
  86. fi
  87. ### END /etc/grub.d/00_header ###
  88.  
  89. ### BEGIN /etc/grub.d/10_linux ###
  90. menuentry 'Arch Linux R17' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-065a3401-3bd3-47b2-883d-92b3be29e1f8' {
  91. load_video
  92. set gfxpayload=keep
  93. insmod gzio
  94. insmod part_gpt
  95. insmod btrfs
  96. search --no-floppy --fs-uuid --set=root 065a3401-3bd3-47b2-883d-92b3be29e1f8
  97. echo 'Loading Linux linux ...'
  98. linux /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/vmlinuz-linux root=UUID=065a3401-3bd3-47b2-883d-92b3be29e1f8 rw rootflags=subvol=timeshift-btrfs/snapshots/2025-02-16_15-25-52/@ loglevel=3 quiet
  99. echo 'Loading initial ramdisk ...'
  100. initrd /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/intel-ucode.img /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/initramfs-linux.img
  101. }
  102. submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-065a3401-3bd3-47b2-883d-92b3be29e1f8' {
  103. menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-065a3401-3bd3-47b2-883d-92b3be29e1f8' {
  104. load_video
  105. set gfxpayload=keep
  106. insmod gzio
  107. insmod part_gpt
  108. insmod btrfs
  109. search --no-floppy --fs-uuid --set=root 065a3401-3bd3-47b2-883d-92b3be29e1f8
  110. echo 'Loading Linux linux ...'
  111. linux /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/vmlinuz-linux root=UUID=065a3401-3bd3-47b2-883d-92b3be29e1f8 rw rootflags=subvol=timeshift-btrfs/snapshots/2025-02-16_15-25-52/@ loglevel=3 quiet
  112. echo 'Loading initial ramdisk ...'
  113. initrd /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/intel-ucode.img /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/initramfs-linux.img
  114. }
  115. menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-065a3401-3bd3-47b2-883d-92b3be29e1f8' {
  116. load_video
  117. set gfxpayload=keep
  118. insmod gzio
  119. insmod part_gpt
  120. insmod btrfs
  121. search --no-floppy --fs-uuid --set=root 065a3401-3bd3-47b2-883d-92b3be29e1f8
  122. echo 'Loading Linux linux ...'
  123. linux /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/vmlinuz-linux root=UUID=065a3401-3bd3-47b2-883d-92b3be29e1f8 rw rootflags=subvol=timeshift-btrfs/snapshots/2025-02-16_15-25-52/@ loglevel=3 quiet
  124. echo 'Loading initial ramdisk ...'
  125. initrd /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/intel-ucode.img /timeshift-btrfs/snapshots/2025-02-16_15-25-52/@/boot/initramfs-linux-fallback.img
  126. }
  127. }
  128.  
  129. ### END /etc/grub.d/10_linux ###
  130.  
  131. ### BEGIN /etc/grub.d/15_ostree ###
  132. ### END /etc/grub.d/15_ostree ###
  133.  
  134. ### BEGIN /etc/grub.d/20_linux_xen ###
  135. ### END /etc/grub.d/20_linux_xen ###
  136.  
  137. ### BEGIN /etc/grub.d/25_bli ###
  138. if [ "$grub_platform" = "efi" ]; then
  139. insmod bli
  140. fi
  141. ### END /etc/grub.d/25_bli ###
  142.  
  143. ### BEGIN /etc/grub.d/30_os-prober ###
  144. menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-4C76-6CEC' {
  145. insmod part_gpt
  146. insmod fat
  147. search --no-floppy --fs-uuid --set=root 4C76-6CEC
  148. chainloader /efi/Microsoft/Boot/bootmgfw.efi
  149. }
  150. ### END /etc/grub.d/30_os-prober ###
  151.  
  152. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  153. if [ "$grub_platform" = "efi" ]; then
  154. fwsetup --is-supported
  155. if [ "$?" = 0 ]; then
  156. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  157. fwsetup
  158. }
  159. fi
  160. fi
  161. ### END /etc/grub.d/30_uefi-firmware ###
  162.  
  163. ### BEGIN /etc/grub.d/35_fwupd ###
  164. ### END /etc/grub.d/35_fwupd ###
  165.  
  166. ### BEGIN /etc/grub.d/40_custom ###
  167. # This file provides an easy way to add custom menu entries. Simply type the
  168. # menu entries you want to add after this comment. Be careful not to change
  169. # the 'exec tail' line above.
  170. ### END /etc/grub.d/40_custom ###
  171.  
  172. ### BEGIN /etc/grub.d/41_custom ###
  173. if [ -f ${config_directory}/custom.cfg ]; then
  174. source ${config_directory}/custom.cfg
  175. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  176. source $prefix/custom.cfg
  177. fi
  178. ### END /etc/grub.d/41_custom ###
  179.  
  180. ### BEGIN /etc/grub.d/41_snapshots-btrfs ###
  181. if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then
  182. echo ""
  183. else
  184. submenu 'Arch Linux snapshots' {
  185. configfile "${prefix}/grub-btrfs.cfg"
  186. }
  187. fi
  188. ### END /etc/grub.d/41_snapshots-btrfs ###
  189.  
Advertisement
Add Comment
Please, Sign In to add comment