Advertisement
hook-lightspeed

Untitled

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