Advertisement
Kossak

/boot/grub/grub.cfg

Aug 18th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.91 KB | None | 0 0
  1. kossak@matikomp ~> sudo cat /boot/grub/grub.cfg
  2. [sudo] password for kossak:
  3. #
  4. # DO NOT EDIT THIS FILE
  5. #
  6. # It is automatically generated by grub-mkconfig using templates
  7. # from /etc/grub.d and settings from /etc/default/grub
  8. #
  9.  
  10. ### BEGIN /etc/grub.d/00_header ###
  11. insmod part_gpt
  12. insmod part_msdos
  13. if [ -s $prefix/grubenv ]; then
  14. load_env
  15. fi
  16. if [ "${next_entry}" ] ; then
  17. set default="${next_entry}"
  18. set next_entry=
  19. save_env next_entry
  20. set boot_once=true
  21. else
  22. set default="Manjaro Linux"
  23. fi
  24.  
  25. if [ x"${feature_menuentry_id}" = xy ]; then
  26. menuentry_id_option="--id"
  27. else
  28. menuentry_id_option=""
  29. fi
  30.  
  31. export menuentry_id_option
  32.  
  33. if [ "${prev_saved_entry}" ]; then
  34. set saved_entry="${prev_saved_entry}"
  35. save_env saved_entry
  36. set prev_saved_entry=
  37. save_env prev_saved_entry
  38. set boot_once=true
  39. fi
  40.  
  41. function savedefault {
  42. if [ -z "${boot_once}" ]; then
  43. saved_entry="${chosen}"
  44. save_env saved_entry
  45. fi
  46. }
  47.  
  48. function load_video {
  49. if [ x$feature_all_video_module = xy ]; then
  50. insmod all_video
  51. else
  52. insmod efi_gop
  53. insmod efi_uga
  54. insmod ieee1275_fb
  55. insmod vbe
  56. insmod vga
  57. insmod video_bochs
  58. insmod video_cirrus
  59. fi
  60. }
  61.  
  62. set menu_color_normal=light-gray/black
  63. set menu_color_highlight=green/black
  64.  
  65. if [ x$feature_default_font_path = xy ] ; then
  66. font=unicode
  67. else
  68. insmod part_gpt
  69. insmod ext2
  70. set root='hd0,gpt5'
  71. if [ x$feature_platform_search_hint = xy ]; then
  72. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 94d53f09-0af8-4ddc-9986-6adaa74d4790
  73. else
  74. search --no-floppy --fs-uuid --set=root 94d53f09-0af8-4ddc-9986-6adaa74d4790
  75. fi
  76. font="/usr/share/grub/unicode.pf2"
  77. fi
  78.  
  79. if loadfont $font ; then
  80. set gfxmode=auto
  81. load_video
  82. insmod gfxterm
  83. set locale_dir=$prefix/locale
  84. set lang=en_US
  85. insmod gettext
  86. fi
  87. terminal_input console
  88. terminal_output gfxterm
  89. insmod part_gpt
  90. insmod ext2
  91. set root='hd0,gpt5'
  92. if [ x$feature_platform_search_hint = xy ]; then
  93. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 94d53f09-0af8-4ddc-9986-6adaa74d4790
  94. else
  95. search --no-floppy --fs-uuid --set=root 94d53f09-0af8-4ddc-9986-6adaa74d4790
  96. fi
  97. insmod png
  98. background_image -m stretch /usr/share/grub/background.png
  99. if [ x$feature_timeout_style = xy ] ; then
  100. set timeout_style=menu
  101. set timeout=5
  102. # Fallback normal timeout code in case the timeout_style feature is
  103. # unavailable.
  104. else
  105. set timeout=5
  106. fi
  107. ### END /etc/grub.d/00_header ###
  108.  
  109. ### BEGIN /etc/grub.d/01_menu_auto_hide ###
  110. if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  111. set last_boot_ok=1
  112. else
  113. set last_boot_ok=0
  114. fi
  115.  
  116. # Reset boot_indeterminate after a successful boot
  117. if [ "${boot_success}" = "1" ] ; then
  118. set boot_indeterminate=0
  119. # Avoid boot_indeterminate causing the menu to be hidden more then once
  120. elif [ "${boot_indeterminate}" = "1" ]; then
  121. set boot_indeterminate=2
  122. fi
  123. set boot_success=0
  124. save_env boot_success boot_indeterminate
  125.  
  126. if [ x$feature_timeout_style = xy ] ; then
  127. if [ "${menu_show_once}" ]; then
  128. unset menu_show_once
  129. save_env menu_show_once
  130. set timeout_style=menu
  131. set timeout=60
  132. elif [ "${menu_auto_hide}" -a "${last_boot_ok}" = "1" ]; then
  133. set orig_timeout_style=${timeout_style}
  134. set orig_timeout=${timeout}
  135. if [ "${fastboot}" = "1" ]; then
  136. # timeout_style=menu + timeout=0 avoids the countdown code keypress check
  137. set timeout_style=menu
  138. set timeout=0
  139. else
  140. set timeout_style=hidden
  141. set timeout=1
  142. fi
  143. fi
  144. fi
  145. ### END /etc/grub.d/01_menu_auto_hide ###
  146.  
  147. ### BEGIN /etc/grub.d/10_linux ###
  148. menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-94d53f09-0af8-4ddc-9986-6adaa74d4790' {
  149. savedefault
  150. load_video
  151. set gfxpayload=keep
  152. insmod gzio
  153. insmod part_gpt
  154. insmod ext2
  155. set root='hd0,gpt5'
  156. if [ x$feature_platform_search_hint = xy ]; then
  157. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 94d53f09-0af8-4ddc-9986-6adaa74d4790
  158. else
  159. search --no-floppy --fs-uuid --set=root 94d53f09-0af8-4ddc-9986-6adaa74d4790
  160. fi
  161. linux /boot/vmlinuz-4.14-x86_64 root=UUID=94d53f09-0af8-4ddc-9986-6adaa74d4790 rw quiet
  162. initrd /boot/intel-ucode.img /boot/initramfs-4.14-x86_64.img
  163. }
  164. submenu 'Advanced options for Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-94d53f09-0af8-4ddc-9986-6adaa74d4790' {
  165. menuentry 'Manjaro Linux (Kernel: 4.14.138-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.138-1-MANJARO x64-advanced-94d53f09-0af8-4ddc-9986-6adaa74d4790' {
  166. savedefault
  167. load_video
  168. set gfxpayload=keep
  169. insmod gzio
  170. insmod part_gpt
  171. insmod ext2
  172. set root='hd0,gpt5'
  173. if [ x$feature_platform_search_hint = xy ]; then
  174. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 94d53f09-0af8-4ddc-9986-6adaa74d4790
  175. else
  176. search --no-floppy --fs-uuid --set=root 94d53f09-0af8-4ddc-9986-6adaa74d4790
  177. fi
  178. linux /boot/vmlinuz-4.14-x86_64 root=UUID=94d53f09-0af8-4ddc-9986-6adaa74d4790 rw quiet
  179. initrd /boot/intel-ucode.img /boot/initramfs-4.14-x86_64.img
  180. }
  181. menuentry 'Manjaro Linux (Kernel: 4.14.138-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.138-1-MANJARO x64-fallback-94d53f09-0af8-4ddc-9986-6adaa74d4790' {
  182. load_video
  183. set gfxpayload=keep
  184. insmod gzio
  185. insmod part_gpt
  186. insmod ext2
  187. set root='hd0,gpt5'
  188. if [ x$feature_platform_search_hint = xy ]; then
  189. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 94d53f09-0af8-4ddc-9986-6adaa74d4790
  190. else
  191. search --no-floppy --fs-uuid --set=root 94d53f09-0af8-4ddc-9986-6adaa74d4790
  192. fi
  193. linux /boot/vmlinuz-4.14-x86_64 root=UUID=94d53f09-0af8-4ddc-9986-6adaa74d4790 rw quiet
  194. initrd /boot/initramfs-4.14-x86_64-fallback.img
  195. }
  196. }
  197.  
  198. ### END /etc/grub.d/10_linux ###
  199.  
  200. ### BEGIN /etc/grub.d/20_linux_xen ###
  201. ### END /etc/grub.d/20_linux_xen ###
  202.  
  203. ### BEGIN /etc/grub.d/30_os-prober ###
  204. menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-BA15-BC44' {
  205. savedefault
  206. insmod part_gpt
  207. insmod fat
  208. set root='hd0,gpt1'
  209. if [ x$feature_platform_search_hint = xy ]; then
  210. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 BA15-BC44
  211. else
  212. search --no-floppy --fs-uuid --set=root BA15-BC44
  213. fi
  214. chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  215. }
  216. # Other OS found, undo autohiding of menu unless menu_auto_hide=2
  217. if [ "${orig_timeout_style}" -a "${menu_auto_hide}" != "2" ]; then
  218. set timeout_style=${orig_timeout_style}
  219. set timeout=${orig_timeout}
  220. fi
  221. ### END /etc/grub.d/30_os-prober ###
  222.  
  223. ### BEGIN /etc/grub.d/40_custom ###
  224. # This file provides an easy way to add custom menu entries. Simply type the
  225. # menu entries you want to add after this comment. Be careful not to change
  226. # the 'exec tail' line above.
  227. ### END /etc/grub.d/40_custom ###
  228.  
  229. ### BEGIN /etc/grub.d/41_custom ###
  230. if [ -f ${config_directory}/custom.cfg ]; then
  231. source ${config_directory}/custom.cfg
  232. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  233. source $prefix/custom.cfg;
  234. fi
  235. ### END /etc/grub.d/41_custom ###
  236.  
  237. ### BEGIN /etc/grub.d/60_memtest86+ ###
  238. if [ "${grub_platform}" == "pc" ]; then
  239. menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
  240. search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 94d53f09-0af8-4ddc-9986-6adaa74d4790
  241. linux16 /boot/memtest86+/memtest.bin
  242. }
  243. fi
  244. ### END /etc/grub.d/60_memtest86+ ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement