riffraff666

grub.cfg

Jun 21st, 2023
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.94 KB | Software | 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. if [ -s $prefix/grubenv ]; then
  10. set have_grubenv=true
  11. load_env
  12. fi
  13. if [ "${initrdfail}" = 2 ]; then
  14. set initrdfail=
  15. elif [ "${initrdfail}" = 1 ]; then
  16. set next_entry="${prev_entry}"
  17. set prev_entry=
  18. save_env prev_entry
  19. if [ "${next_entry}" ]; then
  20. set initrdfail=2
  21. fi
  22. fi
  23. if [ "${next_entry}" ] ; then
  24. set default="${next_entry}"
  25. set next_entry=
  26. save_env next_entry
  27. set boot_once=true
  28. else
  29. set default="${saved_entry}"
  30. fi
  31.  
  32. if [ x"${feature_menuentry_id}" = xy ]; then
  33. menuentry_id_option="--id"
  34. else
  35. menuentry_id_option=""
  36. fi
  37.  
  38. export menuentry_id_option
  39.  
  40. if [ "${prev_saved_entry}" ]; then
  41. set saved_entry="${prev_saved_entry}"
  42. save_env saved_entry
  43. set prev_saved_entry=
  44. save_env prev_saved_entry
  45. set boot_once=true
  46. fi
  47.  
  48. function savedefault {
  49. if [ -z "${boot_once}" ]; then
  50. saved_entry="${chosen}"
  51. save_env saved_entry
  52. fi
  53. }
  54. function initrdfail {
  55. if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
  56. if [ -z "${initrdfail}" ]; then
  57. set initrdfail=1
  58. if [ -n "${boot_once}" ]; then
  59. set prev_entry="${default}"
  60. save_env prev_entry
  61. fi
  62. fi
  63. save_env initrdfail
  64. fi; fi
  65. }
  66. function recordfail {
  67. set recordfail=1
  68. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  69. }
  70. function load_video {
  71. if [ x$feature_all_video_module = xy ]; then
  72. insmod all_video
  73. else
  74. insmod efi_gop
  75. insmod efi_uga
  76. insmod ieee1275_fb
  77. insmod vbe
  78. insmod vga
  79. insmod video_bochs
  80. insmod video_cirrus
  81. fi
  82. }
  83.  
  84. if [ x$feature_default_font_path = xy ] ; then
  85. font=unicode
  86. else
  87. insmod part_gpt
  88. insmod ext2
  89. set root='hd0,gpt2'
  90. if [ x$feature_platform_search_hint = xy ]; then
  91. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 886820cb-039f-4cf0-8129-af98b27ee7e2
  92. else
  93. search --no-floppy --fs-uuid --set=root 886820cb-039f-4cf0-8129-af98b27ee7e2
  94. fi
  95. font="/usr/share/grub/unicode.pf2"
  96. fi
  97.  
  98. if loadfont $font ; then
  99. set gfxmode=auto
  100. load_video
  101. insmod gfxterm
  102. set locale_dir=$prefix/locale
  103. set lang=en_US
  104. insmod gettext
  105. fi
  106. terminal_output gfxterm
  107. if [ "${recordfail}" = 1 ] ; then
  108. set timeout=30
  109. else
  110. if [ x$feature_timeout_style = xy ] ; then
  111. set timeout_style=hidden
  112. set timeout=0
  113. # Fallback hidden-timeout code in case the timeout_style feature is
  114. # unavailable.
  115. elif sleep --interruptible 0 ; then
  116. set timeout=0
  117. fi
  118. fi
  119. ### END /etc/grub.d/00_header ###
  120.  
  121. ### BEGIN /etc/grub.d/05_debian_theme ###
  122. set menu_color_normal=white/black
  123. set menu_color_highlight=black/light-gray
  124. ### END /etc/grub.d/05_debian_theme ###
  125.  
  126. ### BEGIN /etc/grub.d/10_linux ###
  127. function gfxmode {
  128. set gfxpayload="${1}"
  129. if [ "${1}" = "keep" ]; then
  130. set vt_handoff=vt.handoff=7
  131. else
  132. set vt_handoff=
  133. fi
  134. }
  135. if [ "${recordfail}" != 1 ]; then
  136. if [ -e ${prefix}/gfxblacklist.txt ]; then
  137. if [ ${grub_platform} != pc ]; then
  138. set linux_gfx_mode=keep
  139. elif hwmatch ${prefix}/gfxblacklist.txt 3; then
  140. if [ ${match} = 0 ]; then
  141. set linux_gfx_mode=keep
  142. else
  143. set linux_gfx_mode=text
  144. fi
  145. else
  146. set linux_gfx_mode=text
  147. fi
  148. else
  149. set linux_gfx_mode=keep
  150. fi
  151. else
  152. set linux_gfx_mode=text
  153. fi
  154. export linux_gfx_mode
  155. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-886820cb-039f-4cf0-8129-af98b27ee7e2' {
  156. recordfail
  157. savedefault
  158. load_video
  159. gfxmode $linux_gfx_mode
  160. insmod gzio
  161. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  162. insmod part_gpt
  163. insmod ext2
  164. set root='hd0,gpt2'
  165. if [ x$feature_platform_search_hint = xy ]; then
  166. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 886820cb-039f-4cf0-8129-af98b27ee7e2
  167. else
  168. search --no-floppy --fs-uuid --set=root 886820cb-039f-4cf0-8129-af98b27ee7e2
  169. fi
  170. linux /boot/vmlinuz-5.19.17-custom root=/dev/sda2 ro noexec=ofF
  171. }
  172. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-886820cb-039f-4cf0-8129-af98b27ee7e2' {
  173. menuentry 'Ubuntu, with Linux 5.19.17-custom' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.19.17-custom-advanced-886820cb-039f-4cf0-8129-af98b27ee7e2' {
  174. recordfail
  175. savedefault
  176. load_video
  177. gfxmode $linux_gfx_mode
  178. insmod gzio
  179. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  180. insmod part_gpt
  181. insmod ext2
  182. set root='hd0,gpt2'
  183. if [ x$feature_platform_search_hint = xy ]; then
  184. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 886820cb-039f-4cf0-8129-af98b27ee7e2
  185. else
  186. search --no-floppy --fs-uuid --set=root 886820cb-039f-4cf0-8129-af98b27ee7e2
  187. fi
  188. echo 'Loading Linux 5.19.17-custom ...'
  189. linux /boot/vmlinuz-5.19.17-custom root=/dev/sda2 ro noexec=ofF
  190. }
  191. menuentry 'Ubuntu, with Linux 5.19.17-custom (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.19.17-custom-recovery-886820cb-039f-4cf0-8129-af98b27ee7e2' {
  192. recordfail
  193. load_video
  194. insmod gzio
  195. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  196. insmod part_gpt
  197. insmod ext2
  198. set root='hd0,gpt2'
  199. if [ x$feature_platform_search_hint = xy ]; then
  200. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 886820cb-039f-4cf0-8129-af98b27ee7e2
  201. else
  202. search --no-floppy --fs-uuid --set=root 886820cb-039f-4cf0-8129-af98b27ee7e2
  203. fi
  204. echo 'Loading Linux 5.19.17-custom ...'
  205. linux /boot/vmlinuz-5.19.17-custom root=/dev/sda2 ro recovery nomodeset dis_ucode_ldr
  206. }
  207. menuentry 'Ubuntu, with Linux 5.19.0-43-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.19.0-43-generic-advanced-886820cb-039f-4cf0-8129-af98b27ee7e2' {
  208. recordfail
  209. savedefault
  210. load_video
  211. gfxmode $linux_gfx_mode
  212. insmod gzio
  213. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  214. insmod part_gpt
  215. insmod ext2
  216. set root='hd0,gpt2'
  217. if [ x$feature_platform_search_hint = xy ]; then
  218. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 886820cb-039f-4cf0-8129-af98b27ee7e2
  219. else
  220. search --no-floppy --fs-uuid --set=root 886820cb-039f-4cf0-8129-af98b27ee7e2
  221. fi
  222. echo 'Loading Linux 5.19.0-43-generic ...'
  223. linux /boot/vmlinuz-5.19.0-43-generic root=UUID=886820cb-039f-4cf0-8129-af98b27ee7e2 ro noexec=ofF
  224. echo 'Loading initial ramdisk ...'
  225. initrd /boot/initrd.img-5.19.0-43-generic
  226. }
  227. menuentry 'Ubuntu, with Linux 5.19.0-43-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.19.0-43-generic-recovery-886820cb-039f-4cf0-8129-af98b27ee7e2' {
  228. recordfail
  229. load_video
  230. insmod gzio
  231. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  232. insmod part_gpt
  233. insmod ext2
  234. set root='hd0,gpt2'
  235. if [ x$feature_platform_search_hint = xy ]; then
  236. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 886820cb-039f-4cf0-8129-af98b27ee7e2
  237. else
  238. search --no-floppy --fs-uuid --set=root 886820cb-039f-4cf0-8129-af98b27ee7e2
  239. fi
  240. echo 'Loading Linux 5.19.0-43-generic ...'
  241. linux /boot/vmlinuz-5.19.0-43-generic root=UUID=886820cb-039f-4cf0-8129-af98b27ee7e2 ro recovery nomodeset dis_ucode_ldr
  242. echo 'Loading initial ramdisk ...'
  243. initrd /boot/initrd.img-5.19.0-43-generic
  244. }
  245. menuentry 'Ubuntu, with Linux 5.7.19-050719-generic.signed' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.7.19-050719-generic.signed-advanced-886820cb-039f-4cf0-8129-af98b27ee7e2' {
  246. recordfail
  247. savedefault
  248. load_video
  249. gfxmode $linux_gfx_mode
  250. insmod gzio
  251. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  252. insmod part_gpt
  253. insmod ext2
  254. set root='hd0,gpt2'
  255. if [ x$feature_platform_search_hint = xy ]; then
  256. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 886820cb-039f-4cf0-8129-af98b27ee7e2
  257. else
  258. search --no-floppy --fs-uuid --set=root 886820cb-039f-4cf0-8129-af98b27ee7e2
  259. fi
  260. echo 'Loading Linux 5.7.19-050719-generic.signed ...'
  261. linux /boot/vmlinuz-5.7.19-050719-generic.signed root=UUID=886820cb-039f-4cf0-8129-af98b27ee7e2 ro noexec=ofF
  262. echo 'Loading initial ramdisk ...'
  263. initrd /boot/initrd.img-5.7.19-050719-generic.signed
  264. }
  265. menuentry 'Ubuntu, with Linux 5.7.19-050719-generic.signed (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.7.19-050719-generic.signed-recovery-886820cb-039f-4cf0-8129-af98b27ee7e2' {
  266. recordfail
  267. load_video
  268. insmod gzio
  269. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  270. insmod part_gpt
  271. insmod ext2
  272. set root='hd0,gpt2'
  273. if [ x$feature_platform_search_hint = xy ]; then
  274. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 886820cb-039f-4cf0-8129-af98b27ee7e2
  275. else
  276. search --no-floppy --fs-uuid --set=root 886820cb-039f-4cf0-8129-af98b27ee7e2
  277. fi
  278. echo 'Loading Linux 5.7.19-050719-generic.signed ...'
  279. linux /boot/vmlinuz-5.7.19-050719-generic.signed root=UUID=886820cb-039f-4cf0-8129-af98b27ee7e2 ro recovery nomodeset dis_ucode_ldr
  280. echo 'Loading initial ramdisk ...'
  281. initrd /boot/initrd.img-5.7.19-050719-generic.signed
  282. }
  283. }
  284.  
  285. ### END /etc/grub.d/10_linux ###
  286.  
  287. ### BEGIN /etc/grub.d/10_linux_zfs ###
  288. ### END /etc/grub.d/10_linux_zfs ###
  289.  
  290. ### BEGIN /etc/grub.d/20_linux_xen ###
  291.  
  292. ### END /etc/grub.d/20_linux_xen ###
  293.  
  294. ### BEGIN /etc/grub.d/20_memtest86+ ###
  295. ### END /etc/grub.d/20_memtest86+ ###
  296.  
  297. ### BEGIN /etc/grub.d/30_os-prober ###
  298. ### END /etc/grub.d/30_os-prober ###
  299.  
  300. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  301. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  302. fwsetup
  303. }
  304. ### END /etc/grub.d/30_uefi-firmware ###
  305.  
  306. ### BEGIN /etc/grub.d/35_fwupd ###
  307. ### END /etc/grub.d/35_fwupd ###
  308.  
  309. ### BEGIN /etc/grub.d/40_custom ###
  310. # This file provides an easy way to add custom menu entries. Simply type the
  311. # menu entries you want to add after this comment. Be careful not to change
  312. # the 'exec tail' line above.
  313. ### END /etc/grub.d/40_custom ###
  314.  
  315. ### BEGIN /etc/grub.d/41_custom ###
  316. if [ -f ${config_directory}/custom.cfg ]; then
  317. source ${config_directory}/custom.cfg
  318. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  319. source $prefix/custom.cfg
  320. fi
  321. ### END /etc/grub.d/41_custom ###
  322.  
Advertisement
Add Comment
Please, Sign In to add comment