Minty95

boot/grub/grub.cfg

Jan 20th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 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_msdos
  64. insmod ext2
  65. set root='hd1,msdos1'
  66. if [ x$feature_platform_search_hint = xy ]; then
  67. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 2c11fcb8-08c3-4172-9f8e-23b1b1266b4c
  68. else
  69. search --no-floppy --fs-uuid --set=root 2c11fcb8-08c3-4172-9f8e-23b1b1266b4c
  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_GB
  80. insmod gettext
  81. fi
  82. terminal_input console
  83. terminal_output gfxterm
  84. insmod part_msdos
  85. insmod ext2
  86. set root='hd1,msdos1'
  87. if [ x$feature_platform_search_hint = xy ]; then
  88. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 2c11fcb8-08c3-4172-9f8e-23b1b1266b4c
  89. else
  90. search --no-floppy --fs-uuid --set=root 2c11fcb8-08c3-4172-9f8e-23b1b1266b4c
  91. fi
  92. insmod gfxmenu
  93. loadfont ($root)/boot/grub/themes/EndeavourOS/unifont-regular-16.pf2
  94. insmod png
  95. set theme=($root)/boot/grub/themes/EndeavourOS/theme.txt
  96. export theme
  97. if [ x$feature_timeout_style = xy ] ; then
  98. set timeout_style=menu
  99. set timeout=5
  100. # Fallback normal timeout code in case the timeout_style feature is
  101. # unavailable.
  102. else
  103. set timeout=5
  104. fi
  105. ### END /etc/grub.d/00_header ###
  106.  
  107. ### BEGIN /etc/grub.d/10_linux ###
  108. menuentry 'EndeavourOS, on linux' --class endeavouros --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-2c11fcb8-08c3-4172-9f8e-23b1b1266b4c' {
  109. load_video
  110. set gfxpayload=keep
  111. insmod gzio
  112. insmod part_msdos
  113. insmod ext2
  114. set root='hd1,msdos1'
  115. if [ x$feature_platform_search_hint = xy ]; then
  116. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 2c11fcb8-08c3-4172-9f8e-23b1b1266b4c
  117. else
  118. search --no-floppy --fs-uuid --set=root 2c11fcb8-08c3-4172-9f8e-23b1b1266b4c
  119. fi
  120. echo 'Loading kernel linux ...'
  121. linux /boot/vmlinuz-linux root=UUID=2c11fcb8-08c3-4172-9f8e-23b1b1266b4c rw quiet loglevel=3 nowatchdog
  122. echo 'Loading initial ramdisk ...'
  123. initrd /boot/intel-ucode.img /boot/initramfs-linux.img
  124. }
  125. menuentry 'EndeavourOS, on linux (fallback initramfs)' --class endeavouros --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-2c11fcb8-08c3-4172-9f8e-23b1b1266b4c' {
  126. load_video
  127. set gfxpayload=keep
  128. insmod gzio
  129. insmod part_msdos
  130. insmod ext2
  131. set root='hd1,msdos1'
  132. if [ x$feature_platform_search_hint = xy ]; then
  133. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 2c11fcb8-08c3-4172-9f8e-23b1b1266b4c
  134. else
  135. search --no-floppy --fs-uuid --set=root 2c11fcb8-08c3-4172-9f8e-23b1b1266b4c
  136. fi
  137. echo 'Loading kernel linux ...'
  138. linux /boot/vmlinuz-linux root=UUID=2c11fcb8-08c3-4172-9f8e-23b1b1266b4c rw quiet loglevel=3 nowatchdog
  139. echo 'Loading initial ramdisk ...'
  140. initrd /boot/intel-ucode.img /boot/initramfs-linux-fallback.img
  141. }
  142.  
  143. ### END /etc/grub.d/10_linux ###
  144.  
  145. ### BEGIN /etc/grub.d/20_linux_xen ###
  146. ### END /etc/grub.d/20_linux_xen ###
  147.  
  148. ### BEGIN /etc/grub.d/30_os-prober ###
  149. #menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-D8B4CBFDB4CBDBDE' {
  150. # insmod part_msdos
  151. # insmod ntfs
  152. # set root='hd0,msdos1'
  153. # if [ x$feature_platform_search_hint = xy ]; then
  154. # search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 D8B4CBFDB4CBDBDE
  155. # else
  156. # search --no-floppy --fs-uuid --set=root D8B4CBFDB4CBDBDE
  157. # fi
  158. # parttool ${root} hidden-
  159. # drivemap -s (hd0) ${root}
  160. # chainloader +1
  161. #}
  162. ### END /etc/grub.d/30_os-prober ###
  163.  
  164. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  165. ### END /etc/grub.d/30_uefi-firmware ###
  166.  
  167. ### BEGIN /etc/grub.d/40_custom ###
  168. # This file provides an easy way to add custom menu entries. Simply type the
  169. # menu entries you want to add after this comment. Be careful not to change
  170. # the 'exec tail' line above.
  171. ### END /etc/grub.d/40_custom ###
  172.  
  173. ### BEGIN /etc/grub.d/41_custom ###
  174. if [ -f ${config_directory}/custom.cfg ]; then
  175. source ${config_directory}/custom.cfg
  176. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  177. source $prefix/custom.cfg
  178. fi
  179. ### END /etc/grub.d/41_custom ###
  180.  
Add Comment
Please, Sign In to add comment