Guest User

csuhas32

a guest
Nov 16th, 2021
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. As you wish: #
  2. DO NOT EDIT THIS FILE
  3.  
  4. #
  5. It is automatically generated by grub-mkconfig using templates
  6. from /etc/grub.d and settings from /etc/default/grub
  7.  
  8. #
  9. BEGIN /etc/grub.d/00_header
  10.  
  11. if [ -s $prefix/grubenv ]; then
  12. set have_grubenv=true
  13. load_env
  14. fi
  15. if [ "${initrdfail}" = 2 ]; then
  16. set initrdfail=
  17. elif [ "${initrdfail}" = 1 ]; then
  18. set next_entry="${prev_entry}"
  19. set prev_entry=
  20. save_env prev_entry
  21. if [ "${next_entry}" ]; then
  22. set initrdfail=2
  23. fi
  24. fi
  25. if [ "${next_entry}" ] ; then
  26. set default="${next_entry}"
  27. set next_entry=
  28. save_env next_entry
  29. set boot_once=true
  30. else
  31. set default="0"
  32. fi
  33.  
  34. if [ x"${feature_menuentry_id}" = xy ]; then
  35. menuentry_id_option="--id"
  36. else
  37. menuentry_id_option=""
  38. fi
  39.  
  40. export menuentry_id_option
  41.  
  42. if [ "${prev_saved_entry}" ]; then
  43. set saved_entry="${prev_saved_entry}"
  44. save_env saved_entry
  45. set prev_saved_entry=
  46. save_env prev_saved_entry
  47. set boot_once=true
  48. fi
  49.  
  50. function savedefault {
  51. if [ -z "${boot_once}" ]; then
  52. saved_entry="${chosen}"
  53. save_env saved_entry
  54. fi
  55. }
  56. function initrdfail {
  57. if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
  58. if [ -z "${initrdfail}" ]; then
  59. set initrdfail=1
  60. if [ -n "${boot_once}" ]; then
  61. set prev_entry="${default}"
  62. save_env prev_entry
  63. fi
  64. fi
  65. save_env initrdfail
  66. fi; fi
  67. }
  68. function recordfail {
  69. set recordfail=1
  70. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  71. }
  72. function load_video {
  73. if [ x$feature_all_video_module = xy ]; then
  74. insmod all_video
  75. else
  76. insmod efi_gop
  77. insmod efi_uga
  78. insmod ieee1275_fb
  79. insmod vbe
  80. insmod vga
  81. insmod video_bochs
  82. insmod video_cirrus
  83. fi
  84. }
  85.  
  86. if [ x$feature_default_font_path = xy ] ; then
  87. font=unicode
  88. else
  89. insmod part_gpt
  90. insmod ext2
  91. set root='hd0,gpt2'
  92. if [ x$feature_platform_search_hint = xy ]; then
  93. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8681d18c-9c88-4fe5-8ed5-204df2735c77
  94. else
  95. search --no-floppy --fs-uuid --set=root 8681d18c-9c88-4fe5-8ed5-204df2735c77
  96. fi
  97. font="/usr/share/grub/unicode.pf2"
  98. fi
  99.  
  100. if loadfont $font ; then
  101. set gfxmode=auto
  102. load_video
  103. insmod gfxterm
  104. set locale_dir=$prefix/locale
  105. set lang=en_US
  106. insmod gettext
  107. fi
  108. terminal_output gfxterm
  109. if [ "${recordfail}" = 1 ] ; then
  110. set timeout=30
  111. else
  112. if [ x$feature_timeout_style = xy ] ; then
  113. set timeout_style=hidden
  114. set timeout=0
  115. Fallback hidden-timeout code in case the timeout_style feature is
  116. unavailable.
  117.  
  118. elif sleep --interruptible 0 ; then
  119. set timeout=0
  120. fi
  121. fi
  122. END /etc/grub.d/00_header
  123. BEGIN /etc/grub.d/05_debian_theme
  124.  
  125. set menu_color_normal=white/black
  126. set menu_color_highlight=black/light-gray
  127. END /etc/grub.d/05_debian_theme
  128. BEGIN /etc/grub.d/10_linux
  129.  
  130. function gfxmode {
  131. set gfxpayload="${1}"
  132. if [ "${1}" = "keep" ]; then
  133. set vt_handoff=vt.handoff=7
  134. else
  135. set vt_handoff=
  136. fi
  137. }
  138. if [ "${recordfail}" != 1 ]; then
  139. if [ -e ${prefix}/gfxblacklist.txt ]; then
  140. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  141. if [ ${match} = 0 ]; then
  142. set linux_gfx_mode=keep
  143. else
  144. set linux_gfx_mode=text
  145. fi
  146. else
  147. set linux_gfx_mode=text
  148. fi
  149. else
  150. set linux_gfx_mode=keep
  151. fi
  152. else
  153. set linux_gfx_mode=text
  154. fi
  155. export linux_gfx_mode
  156. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8681d18c-9c88-4fe5-8ed5-204df2735c77' {
  157. recordfail
  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 8681d18c-9c88-4fe5-8ed5-204df2735c77
  167. else
  168. search --no-floppy --fs-uuid --set=root 8681d18c-9c88-4fe5-8ed5-204df2735c77
  169. fi
  170. linux /boot/vmlinuz-5.13.0-21-generic root=UUID=8681d18c-9c88-4fe5-8ed5-204df2735c77 ro quiet splash drm_kms_helper.poll=N $vt_handoff
  171. initrd /boot/initrd.img-5.13.0-21-generic
  172. }
  173. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-8681d18c-9c88-4fe5-8ed5-204df2735c77' {
  174. menuentry 'Ubuntu, with Linux 5.13.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-21-generic-advanced-8681d18c-9c88-4fe5-8ed5-204df2735c77' {
  175. recordfail
  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 8681d18c-9c88-4fe5-8ed5-204df2735c77
  185. else
  186. search --no-floppy --fs-uuid --set=root 8681d18c-9c88-4fe5-8ed5-204df2735c77
  187. fi
  188. echo 'Loading Linux 5.13.0-21-generic ...'
  189. linux /boot/vmlinuz-5.13.0-21-generic root=UUID=8681d18c-9c88-4fe5-8ed5-204df2735c77 ro quiet splash drm_kms_helper.poll=N $vt_handoff
  190. echo 'Loading initial ramdisk ...'
  191. initrd /boot/initrd.img-5.13.0-21-generic
  192. }
  193. menuentry 'Ubuntu, with Linux 5.13.0-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-21-generic-recovery-8681d18c-9c88-4fe5-8ed5-204df2735c77' {
  194. recordfail
  195. load_video
  196. insmod gzio
  197. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  198. insmod part_gpt
  199. insmod ext2
  200. set root='hd0,gpt2'
  201. if [ x$feature_platform_search_hint = xy ]; then
  202. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8681d18c-9c88-4fe5-8ed5-204df2735c77
  203. else
  204. search --no-floppy --fs-uuid --set=root 8681d18c-9c88-4fe5-8ed5-204df2735c77
  205. fi
  206. echo 'Loading Linux 5.13.0-21-generic ...'
  207. linux /boot/vmlinuz-5.13.0-21-generic root=UUID=8681d18c-9c88-4fe5-8ed5-204df2735c77 ro recovery nomodeset dis_ucode_ldr
  208. echo 'Loading initial ramdisk ...'
  209. initrd /boot/initrd.img-5.13.0-21-generic
  210. }
  211. menuentry 'Ubuntu, with Linux 5.13.0-20-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-20-generic-advanced-8681d18c-9c88-4fe5-8ed5-204df2735c77' {
  212. recordfail
  213. load_video
  214. gfxmode $linux_gfx_mode
  215. insmod gzio
  216. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  217. insmod part_gpt
  218. insmod ext2
  219. set root='hd0,gpt2'
  220. if [ x$feature_platform_search_hint = xy ]; then
  221. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8681d18c-9c88-4fe5-8ed5-204df2735c77
  222. else
  223. search --no-floppy --fs-uuid --set=root 8681d18c-9c88-4fe5-8ed5-204df2735c77
  224. fi
  225. echo 'Loading Linux 5.13.0-20-generic ...'
  226. linux /boot/vmlinuz-5.13.0-20-generic root=UUID=8681d18c-9c88-4fe5-8ed5-204df2735c77 ro quiet splash drm_kms_helper.poll=N $vt_handoff
  227. echo 'Loading initial ramdisk ...'
  228. initrd /boot/initrd.img-5.13.0-20-generic
  229. }
  230. menuentry 'Ubuntu, with Linux 5.13.0-20-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-20-generic-recovery-8681d18c-9c88-4fe5-8ed5-204df2735c77' {
  231. recordfail
  232. load_video
  233. insmod gzio
  234. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  235. insmod part_gpt
  236. insmod ext2
  237. set root='hd0,gpt2'
  238. if [ x$feature_platform_search_hint = xy ]; then
  239. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8681d18c-9c88-4fe5-8ed5-204df2735c77
  240. else
  241. search --no-floppy --fs-uuid --set=root 8681d18c-9c88-4fe5-8ed5-204df2735c77
  242. fi
  243. echo 'Loading Linux 5.13.0-20-generic ...'
  244. linux /boot/vmlinuz-5.13.0-20-generic root=UUID=8681d18c-9c88-4fe5-8ed5-204df2735c77 ro recovery nomodeset dis_ucode_ldr
  245. echo 'Loading initial ramdisk ...'
  246. initrd /boot/initrd.img-5.13.0-20-generic
  247. }
  248. }
  249. END /etc/grub.d/10_linux
  250. BEGIN /etc/grub.d/10_linux_zfs
  251. END /etc/grub.d/10_linux_zfs
  252. BEGIN /etc/grub.d/20_linux_xen
  253. END /etc/grub.d/20_linux_xen
  254. BEGIN /etc/grub.d/20_memtest86+
  255. END /etc/grub.d/20_memtest86+
  256. BEGIN /etc/grub.d/30_os-prober
  257. END /etc/grub.d/30_os-prober
  258. BEGIN /etc/grub.d/30_uefi-firmware
  259.  
  260. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  261. fwsetup
  262. }
  263. END /etc/grub.d/30_uefi-firmware
  264. BEGIN /etc/grub.d/40_custom
  265. This file provides an easy way to add custom menu entries. Simply type the
  266. menu entries you want to add after this comment. Be careful not to change
  267. the 'exec tail' line above.
  268. END /etc/grub.d/40_custom
  269. BEGIN /etc/grub.d/41_custom
  270.  
  271. if [ -f ${config_directory}/custom.cfg ]; then
  272. source ${config_directory}/custom.cfg
  273. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  274. source $prefix/custom.cfg;
  275. fi
  276. END /etc/grub.d/41_custom
  277.  
  278. /* Generator: Sketch 40.3 (33839) - http://www.bohemiancoding.com/sketch */
  279.  
  280.  
RAW Paste Data