Advertisement
Guest User

Untitled

a guest
Oct 15th, 2024
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.89 KB | Fixit | 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="0"
  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='hd1,gpt2'
  90. if [ x$feature_platform_search_hint = xy ]; then
  91. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 52b50d71-7803-4c19-8817-0765cf37cf95
  92. else
  93. search --no-floppy --fs-uuid --set=root 52b50d71-7803-4c19-8817-0765cf37cf95
  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=pl_PL
  104. insmod gettext
  105. fi
  106. terminal_output gfxterm
  107. insmod part_gpt
  108. insmod ext2
  109. set root='hd1,gpt2'
  110. if [ x$feature_platform_search_hint = xy ]; then
  111. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 52b50d71-7803-4c19-8817-0765cf37cf95
  112. else
  113. search --no-floppy --fs-uuid --set=root 52b50d71-7803-4c19-8817-0765cf37cf95
  114. fi
  115. insmod gfxmenu
  116. loadfont ($root)/boot/grub/themes/poly-dark-master/unifont-regular-16.pf2
  117. insmod png
  118. set theme=($root)/boot/grub/themes/poly-dark-master/theme.txt
  119. export theme
  120. if [ "${recordfail}" = 1 ] ; then
  121. set timeout=30
  122. else
  123. if [ x$feature_timeout_style = xy ] ; then
  124. set timeout_style=hidden
  125. set timeout=10
  126. # Fallback hidden-timeout code in case the timeout_style feature is
  127. # unavailable.
  128. elif sleep --interruptible 10 ; then
  129. set timeout=0
  130. fi
  131. fi
  132. ### END /etc/grub.d/00_header ###
  133.  
  134. ### BEGIN /etc/grub.d/05_debian_theme ###
  135. set menu_color_normal=white/black
  136. set menu_color_highlight=black/light-gray
  137. if background_color 0,0,0; then
  138. clear
  139. fi
  140.  
  141. color_normal=white/black
  142.  
  143. if [ -e ${prefix}/themes/kubuntu-logo/theme.txt ]; then
  144. insmod png
  145. theme=${prefix}/themes/kubuntu-logo/theme.txt
  146. fi
  147. ### END /etc/grub.d/05_debian_theme ###
  148.  
  149. ### BEGIN /etc/grub.d/10_linux_proxy ###
  150.  
  151. function gfxmode {
  152. set gfxpayload="${1}"
  153. if [ "${1}" = "keep" ]; then
  154. set vt_handoff=vt.handoff=7
  155. else
  156. set vt_handoff=
  157. fi
  158. }
  159. if [ "${recordfail}" != 1 ]; then
  160. if [ -e ${prefix}/gfxblacklist.txt ]; then
  161. if [ ${grub_platform} != pc ]; then
  162. set linux_gfx_mode=keep
  163. elif hwmatch ${prefix}/gfxblacklist.txt 3; then
  164. if [ ${match} = 0 ]; then
  165. set linux_gfx_mode=keep
  166. else
  167. set linux_gfx_mode=text
  168. fi
  169. else
  170. set linux_gfx_mode=text
  171. fi
  172. else
  173. set linux_gfx_mode=keep
  174. fi
  175. else
  176. set linux_gfx_mode=text
  177. fi
  178. export linux_gfx_mode
  179.  
  180.  
  181.  
  182. ### END /etc/grub.d/10_linux_proxy ###
  183.  
  184. ### BEGIN /etc/grub.d/30_os-prober_proxy ###
  185. menuentry "Windows 10" --class windows --class os $menuentry_id_option 'osprober-efi-A825-2C91' {
  186. insmod part_gpt
  187. insmod fat
  188. search --no-floppy --fs-uuid --set=root A825-2C91
  189. chainloader /efi/Microsoft/Boot/bootmgfw.efi
  190. }
  191. ### END /etc/grub.d/30_os-prober_proxy ###
  192.  
  193. ### BEGIN /etc/grub.d/31_linux_proxy ###
  194. menuentry "Kubuntu" --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-52b50d71-7803-4c19-8817-0765cf37cf95' {
  195. recordfail
  196. load_video
  197. gfxmode $linux_gfx_mode
  198. insmod gzio
  199. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  200. insmod part_gpt
  201. insmod ext2
  202. set root='hd1,gpt2'
  203. if [ x$feature_platform_search_hint = xy ]; then
  204. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 52b50d71-7803-4c19-8817-0765cf37cf95
  205. else
  206. search --no-floppy --fs-uuid --set=root 52b50d71-7803-4c19-8817-0765cf37cf95
  207. fi
  208. linux /boot/vmlinuz-6.11.0-8-generic root=UUID=52b50d71-7803-4c19-8817-0765cf37cf95 ro quiet splash resume=UUID=77378bc9-253c-4814-89b1-1f1aef8bed9d $vt_handoff
  209. initrd /boot/initrd.img-6.11.0-8-generic
  210. }
  211. submenu "Advanced options for Kubuntu"{
  212. menuentry "Kubuntu, with Linux 6.11.0-8-generic" --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.11.0-8-generic-advanced-52b50d71-7803-4c19-8817-0765cf37cf95' {
  213. recordfail
  214. load_video
  215. gfxmode $linux_gfx_mode
  216. insmod gzio
  217. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  218. insmod part_gpt
  219. insmod ext2
  220. set root='hd1,gpt2'
  221. if [ x$feature_platform_search_hint = xy ]; then
  222. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 52b50d71-7803-4c19-8817-0765cf37cf95
  223. else
  224. search --no-floppy --fs-uuid --set=root 52b50d71-7803-4c19-8817-0765cf37cf95
  225. fi
  226. echo 'Loading Linux 6.11.0-8-generic ...'
  227. linux /boot/vmlinuz-6.11.0-8-generic root=UUID=52b50d71-7803-4c19-8817-0765cf37cf95 ro quiet splash resume=UUID=77378bc9-253c-4814-89b1-1f1aef8bed9d $vt_handoff
  228. echo 'Loading initial ramdisk ...'
  229. initrd /boot/initrd.img-6.11.0-8-generic
  230. }
  231. menuentry "Kubuntu, with Linux 6.11.0-8-generic (recovery mode)" --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.11.0-8-generic-recovery-52b50d71-7803-4c19-8817-0765cf37cf95' {
  232. recordfail
  233. load_video
  234. insmod gzio
  235. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  236. insmod part_gpt
  237. insmod ext2
  238. set root='hd1,gpt2'
  239. if [ x$feature_platform_search_hint = xy ]; then
  240. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 52b50d71-7803-4c19-8817-0765cf37cf95
  241. else
  242. search --no-floppy --fs-uuid --set=root 52b50d71-7803-4c19-8817-0765cf37cf95
  243. fi
  244. echo 'Loading Linux 6.11.0-8-generic ...'
  245. linux /boot/vmlinuz-6.11.0-8-generic root=UUID=52b50d71-7803-4c19-8817-0765cf37cf95 ro recovery nomodeset dis_ucode_ldr
  246. echo 'Loading initial ramdisk ...'
  247. initrd /boot/initrd.img-6.11.0-8-generic
  248. }
  249. }
  250. ### END /etc/grub.d/31_linux_proxy ###
  251.  
  252. ### BEGIN /etc/grub.d/32_linux_zfs ###
  253. ### END /etc/grub.d/32_linux_zfs ###
  254.  
  255. ### BEGIN /etc/grub.d/33_linux_xen ###
  256.  
  257. ### END /etc/grub.d/33_linux_xen ###
  258.  
  259. ### BEGIN /etc/grub.d/34_memtest86+_proxy ###
  260.  
  261.  
  262.  
  263. ### END /etc/grub.d/34_memtest86+_proxy ###
  264.  
  265. ### BEGIN /etc/grub.d/35_bli ###
  266. if [ "$grub_platform" = "efi" ]; then
  267. insmod bli
  268. fi
  269. ### END /etc/grub.d/35_bli ###
  270.  
  271. ### BEGIN /etc/grub.d/36_os-prober_proxy ###
  272.  
  273.  
  274. set timeout_style=menu
  275. if [ "${timeout}" = 0 ]; then
  276. set timeout=10
  277. fi
  278. ### END /etc/grub.d/36_os-prober_proxy ###
  279.  
  280. ### BEGIN /etc/grub.d/37_uefi-firmware ###
  281. if [ "$grub_platform" = "efi" ]; then
  282. fwsetup --is-supported
  283. if [ "$?" = 0 ]; then
  284. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  285. fwsetup
  286. }
  287. fi
  288. fi
  289. ### END /etc/grub.d/37_uefi-firmware ###
  290.  
  291. ### BEGIN /etc/grub.d/38_fwupd ###
  292. ### END /etc/grub.d/38_fwupd ###
  293.  
  294. ### BEGIN /etc/grub.d/39_custom ###
  295. # This file provides an easy way to add custom menu entries. Simply type the
  296. # menu entries you want to add after this comment. Be careful not to change
  297. # the 'exec tail' line above.
  298. ### END /etc/grub.d/39_custom ###
  299.  
  300. ### BEGIN /etc/grub.d/41_custom ###
  301. if [ -f ${config_directory}/custom.cfg ]; then
  302. source ${config_directory}/custom.cfg
  303. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  304. source $prefix/custom.cfg
  305. fi
  306. ### END /etc/grub.d/41_custom ###
  307.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement