Advertisement
timcowchip

grub.cfg

Feb 16th, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 KB | None | 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. insmod part_gpt
  10. insmod part_msdos
  11. if [ -s $prefix/grubenv ]; then
  12. load_env
  13. fi
  14. if [ "${next_entry}" ] ; then
  15. set default="${next_entry}"
  16. set next_entry=
  17. save_env next_entry
  18. set boot_once=true
  19. else
  20. set default="${saved_entry}"
  21. fi
  22.  
  23. if [ x"${feature_menuentry_id}" = xy ]; then
  24. menuentry_id_option="--id"
  25. else
  26. menuentry_id_option=""
  27. fi
  28.  
  29. export menuentry_id_option
  30.  
  31. if [ "${prev_saved_entry}" ]; then
  32. set saved_entry="${prev_saved_entry}"
  33. save_env saved_entry
  34. set prev_saved_entry=
  35. save_env prev_saved_entry
  36. set boot_once=true
  37. fi
  38.  
  39. function savedefault {
  40. if [ -z "${boot_once}" ]; then
  41. saved_entry="${chosen}"
  42. save_env saved_entry
  43. fi
  44. }
  45.  
  46. function load_video {
  47. if [ x$feature_all_video_module = xy ]; then
  48. insmod all_video
  49. else
  50. insmod efi_gop
  51. insmod efi_uga
  52. insmod ieee1275_fb
  53. insmod vbe
  54. insmod vga
  55. insmod video_bochs
  56. insmod video_cirrus
  57. fi
  58. }
  59.  
  60. if [ x$feature_default_font_path = xy ] ; then
  61. font=unicode
  62. else
  63. insmod part_msdos
  64. insmod ext2
  65. set root='hd0,msdos1'
  66. if [ x$feature_platform_search_hint = xy ]; then
  67. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 3ebf4bc7-abb5-442e-87b0-278638e7a9e1
  68. else
  69. search --no-floppy --fs-uuid --set=root 3ebf4bc7-abb5-442e-87b0-278638e7a9e1
  70. fi
  71. font="/usr/lib/grub/fonts/unifont.pf2"
  72. fi
  73.  
  74. if loadfont $font ; then
  75. set gfxmode=auto
  76. load_video
  77. insmod gfxterm
  78. fi
  79. terminal_input console
  80. terminal_output gfxterm
  81. if [ x$feature_timeout_style = xy ] ; then
  82. set timeout_style=menu
  83. set timeout=5
  84. # Fallback normal timeout code in case the timeout_style feature is
  85. # unavailable.
  86. else
  87. set timeout=5
  88. fi
  89. ### END /etc/grub.d/00_header ###
  90.  
  91. ### BEGIN /etc/grub.d/10_linux ###
  92.  
  93. ### END /etc/grub.d/10_linux ###
  94.  
  95. ### BEGIN /etc/grub.d/20_linux_xen ###
  96. ### END /etc/grub.d/20_linux_xen ###
  97.  
  98. ### BEGIN /etc/grub.d/30_os-prober ###
  99. menuentry 'CentOS Linux 7 (Core) (on /dev/sda2)' --class centos --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c' {
  100. savedefault
  101. insmod part_msdos
  102. insmod ext2
  103. set root='hd0,msdos2'
  104. if [ x$feature_platform_search_hint = xy ]; then
  105. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  106. else
  107. search --no-floppy --fs-uuid --set=root cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  108. fi
  109. linux /boot/vmlinuz-0-rescue-6ce9f717e5104b06b941259260955ff4 root=/dev/sda2
  110. initrd /boot/initramfs-0-rescue-6ce9f717e5104b06b941259260955ff4.img
  111. }
  112. submenu 'Advanced options for CentOS Linux 7 (Core) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c' {
  113. menuentry 'CentOS Linux 7 (Core) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-0-rescue-6ce9f717e5104b06b941259260955ff4--cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c' {
  114. savedefault
  115. insmod part_msdos
  116. insmod ext2
  117. set root='hd0,msdos2'
  118. if [ x$feature_platform_search_hint = xy ]; then
  119. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  120. else
  121. search --no-floppy --fs-uuid --set=root cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  122. fi
  123. linux /boot/vmlinuz-0-rescue-6ce9f717e5104b06b941259260955ff4 root=/dev/sda2
  124. initrd /boot/initramfs-0-rescue-6ce9f717e5104b06b941259260955ff4.img
  125. }
  126. menuentry 'CentOS Linux 7 (Core) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.10.0-514.2.2.el7.x86_64--cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c' {
  127. savedefault
  128. insmod part_msdos
  129. insmod ext2
  130. set root='hd0,msdos2'
  131. if [ x$feature_platform_search_hint = xy ]; then
  132. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  133. else
  134. search --no-floppy --fs-uuid --set=root cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  135. fi
  136. linux /boot/vmlinuz-3.10.0-514.2.2.el7.x86_64 root=/dev/sda2
  137. initrd /boot/initramfs-3.10.0-514.2.2.el7.x86_64.img
  138. }
  139. menuentry 'CentOS Linux 7 (Core) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.10.0-514.6.1.el7.x86_64--cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c' {
  140. savedefault
  141. insmod part_msdos
  142. insmod ext2
  143. set root='hd0,msdos2'
  144. if [ x$feature_platform_search_hint = xy ]; then
  145. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  146. else
  147. search --no-floppy --fs-uuid --set=root cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  148. fi
  149. linux /boot/vmlinuz-3.10.0-514.6.1.el7.x86_64 root=/dev/sda2
  150. initrd /boot/initramfs-3.10.0-514.6.1.el7.x86_64.img
  151. }
  152. menuentry 'CentOS Linux 7 (Core) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.10.0-514.el7.x86_64--cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c' {
  153. savedefault
  154. insmod part_msdos
  155. insmod ext2
  156. set root='hd0,msdos2'
  157. if [ x$feature_platform_search_hint = xy ]; then
  158. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  159. else
  160. search --no-floppy --fs-uuid --set=root cfbe8ef8-7f1e-4a0c-9460-02ce9aa9ac0c
  161. fi
  162. linux /boot/vmlinuz-3.10.0-514.el7.x86_64 root=/dev/sda2
  163. initrd /boot/initramfs-3.10.0-514.el7.x86_64.img
  164. }
  165. }
  166.  
  167. menuentry 'KaOS (rolling) (on /dev/sda4)' --class kaos --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-0725ebc0-ea43-4725-991c-3add311ce856' {
  168. savedefault
  169. insmod part_msdos
  170. insmod xfs
  171. set root='hd0,msdos4'
  172. if [ x$feature_platform_search_hint = xy ]; then
  173. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 0725ebc0-ea43-4725-991c-3add311ce856
  174. else
  175. search --no-floppy --fs-uuid --set=root 0725ebc0-ea43-4725-991c-3add311ce856
  176. fi
  177. linux /boot/vmlinuz-linux root=UUID=0725ebc0-ea43-4725-991c-3add311ce856 rw resume=UUID=bbcec7d5-15d5-43a2-8cd1-c9bbbbad417c quiet systemd.show_status=0
  178. initrd /boot/initramfs-linux.img
  179. }
  180. submenu 'Advanced options for KaOS (rolling) (on /dev/sda4)' $menuentry_id_option 'osprober-gnulinux-advanced-0725ebc0-ea43-4725-991c-3add311ce856' {
  181. menuentry 'KaOS Linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--0725ebc0-ea43-4725-991c-3add311ce856' {
  182. savedefault
  183. insmod part_msdos
  184. insmod xfs
  185. set root='hd0,msdos4'
  186. if [ x$feature_platform_search_hint = xy ]; then
  187. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 0725ebc0-ea43-4725-991c-3add311ce856
  188. else
  189. search --no-floppy --fs-uuid --set=root 0725ebc0-ea43-4725-991c-3add311ce856
  190. fi
  191. linux /boot/vmlinuz-linux root=UUID=0725ebc0-ea43-4725-991c-3add311ce856 rw resume=UUID=bbcec7d5-15d5-43a2-8cd1-c9bbbbad417c quiet systemd.show_status=0
  192. initrd /boot/initramfs-linux.img
  193. }
  194. menuentry 'KaOS Linux, with Linux linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--0725ebc0-ea43-4725-991c-3add311ce856' {
  195. savedefault
  196. insmod part_msdos
  197. insmod xfs
  198. set root='hd0,msdos4'
  199. if [ x$feature_platform_search_hint = xy ]; then
  200. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 0725ebc0-ea43-4725-991c-3add311ce856
  201. else
  202. search --no-floppy --fs-uuid --set=root 0725ebc0-ea43-4725-991c-3add311ce856
  203. fi
  204. linux /boot/vmlinuz-linux root=UUID=0725ebc0-ea43-4725-991c-3add311ce856 rw resume=UUID=bbcec7d5-15d5-43a2-8cd1-c9bbbbad417c quiet systemd.show_status=0
  205. initrd /boot/initramfs-linux.img
  206. }
  207. menuentry 'KaOS Linux, with Linux linux (fallback initramfs) (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--0725ebc0-ea43-4725-991c-3add311ce856' {
  208. savedefault
  209. insmod part_msdos
  210. insmod xfs
  211. set root='hd0,msdos4'
  212. if [ x$feature_platform_search_hint = xy ]; then
  213. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 0725ebc0-ea43-4725-991c-3add311ce856
  214. else
  215. search --no-floppy --fs-uuid --set=root 0725ebc0-ea43-4725-991c-3add311ce856
  216. fi
  217. linux /boot/vmlinuz-linux root=UUID=0725ebc0-ea43-4725-991c-3add311ce856 rw resume=UUID=bbcec7d5-15d5-43a2-8cd1-c9bbbbad417c quiet systemd.show_status=0
  218. initrd /boot/initramfs-linux-fallback.img
  219. }
  220. }
  221.  
  222. ### END /etc/grub.d/30_os-prober ###
  223.  
  224. ### BEGIN /etc/grub.d/40_custom ###
  225. # This file provides an easy way to add custom menu entries. Simply type the
  226. # menu entries you want to add after this comment. Be careful not to change
  227. # the 'exec tail' line above.
  228. ### END /etc/grub.d/40_custom ###
  229.  
  230. ### BEGIN /etc/grub.d/41_custom ###
  231. if [ -f ${config_directory}/custom.cfg ]; then
  232. source ${config_directory}/custom.cfg
  233. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  234. source $prefix/custom.cfg;
  235. fi
  236. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement