Advertisement
timcowchip

kaos grub.cfg

Dec 28th, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.53 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_gpt
  64. insmod xfs
  65. set root='hd0,gpt2'
  66. if [ x$feature_platform_search_hint = xy ]; then
  67. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1
  68. else
  69. search --no-floppy --fs-uuid --set=root abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1
  70. fi
  71. font="/usr/share/grub/unicode.pf2"
  72. fi
  73.  
  74. if loadfont $font ; then
  75. set gfxmode=1024x768
  76. load_video
  77. insmod gfxterm
  78. set locale_dir=$prefix/locale
  79. set lang=en_US
  80. insmod gettext
  81. fi
  82. terminal_input console
  83. terminal_output gfxterm
  84. insmod part_gpt
  85. insmod xfs
  86. set root='hd0,gpt2'
  87. if [ x$feature_platform_search_hint = xy ]; then
  88. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1
  89. else
  90. search --no-floppy --fs-uuid --set=root abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1
  91. fi
  92. insmod gfxmenu
  93. loadfont ($root)/usr/share/grub/themes/midna/dejavu_mono_14.pf2
  94. loadfont ($root)/usr/share/grub/themes/midna/NotoSans-Bold-14.pf2
  95. loadfont ($root)/usr/share/grub/themes/midna/NotoSans-Regular-10.pf2
  96. loadfont ($root)/usr/share/grub/themes/midna/NotoSans-Regular-12.pf2
  97. loadfont ($root)/usr/share/grub/themes/midna/NotoSans-Regular-32.pf2
  98. insmod png
  99. set theme=($root)/usr/share/grub/themes/midna/theme.txt
  100. export theme
  101. if [ x$feature_timeout_style = xy ] ; then
  102. set timeout_style=menu
  103. set timeout=5
  104. # Fallback normal timeout code in case the timeout_style feature is
  105. # unavailable.
  106. else
  107. set timeout=5
  108. fi
  109. ### END /etc/grub.d/00_header ###
  110.  
  111. ### BEGIN /etc/grub.d/10_linux ###
  112. menuentry 'KaOS Linux' --class kaos --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1' {
  113. savedefault
  114. load_video
  115. set gfxpayload=keep
  116. insmod gzio
  117. insmod part_gpt
  118. insmod fat
  119. set root='hd0,gpt1'
  120. if [ x$feature_platform_search_hint = xy ]; then
  121. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 23BD-209C
  122. else
  123. search --no-floppy --fs-uuid --set=root 23BD-209C
  124. fi
  125. echo 'Loading Linux linux ...'
  126. linux /vmlinuz-linux root=UUID=abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1 rw quiet
  127. echo 'Loading initial ramdisk ...'
  128. initrd /initramfs-linux.img
  129. }
  130. submenu 'Advanced options for KaOS Linux' $menuentry_id_option 'gnulinux-advanced-abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1' {
  131. menuentry 'KaOS Linux, with Linux linux' --class kaos --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1' {
  132. savedefault
  133. load_video
  134. set gfxpayload=keep
  135. insmod gzio
  136. insmod part_gpt
  137. insmod fat
  138. set root='hd0,gpt1'
  139. if [ x$feature_platform_search_hint = xy ]; then
  140. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 23BD-209C
  141. else
  142. search --no-floppy --fs-uuid --set=root 23BD-209C
  143. fi
  144. echo 'Loading Linux linux ...'
  145. linux /vmlinuz-linux root=UUID=abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1 rw quiet
  146. echo 'Loading initial ramdisk ...'
  147. initrd /initramfs-linux.img
  148. }
  149. menuentry 'KaOS Linux, with Linux linux (fallback initramfs)' --class kaos --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1' {
  150. savedefault
  151. load_video
  152. set gfxpayload=keep
  153. insmod gzio
  154. insmod part_gpt
  155. insmod fat
  156. set root='hd0,gpt1'
  157. if [ x$feature_platform_search_hint = xy ]; then
  158. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 23BD-209C
  159. else
  160. search --no-floppy --fs-uuid --set=root 23BD-209C
  161. fi
  162. echo 'Loading Linux linux ...'
  163. linux /vmlinuz-linux root=UUID=abc8c0bb-60c5-4fe5-a11a-51b9cd8d62e1 rw quiet
  164. echo 'Loading initial ramdisk ...'
  165. initrd /initramfs-linux-fallback.img
  166. }
  167. }
  168.  
  169. ### END /etc/grub.d/10_linux ###
  170.  
  171. ### BEGIN /etc/grub.d/20_linux_xen ###
  172. ### END /etc/grub.d/20_linux_xen ###
  173.  
  174. ### BEGIN /etc/grub.d/30_os-prober ###
  175. menuentry 'void (on /dev/sda3)' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-5c446385-ccd9-45d1-b222-006ad712d451' {
  176. savedefault
  177. insmod part_gpt
  178. insmod ext2
  179. set root='hd0,gpt3'
  180. if [ x$feature_platform_search_hint = xy ]; then
  181. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 5c446385-ccd9-45d1-b222-006ad712d451
  182. else
  183. search --no-floppy --fs-uuid --set=root 5c446385-ccd9-45d1-b222-006ad712d451
  184. fi
  185. linux /boot/vmlinuz-4.12.13_1 root=/dev/sda3
  186. initrd /boot/initramfs-4.12.13_1.img
  187. }
  188. submenu 'Advanced options for void (on /dev/sda3)' $menuentry_id_option 'osprober-gnulinux-advanced-5c446385-ccd9-45d1-b222-006ad712d451' {
  189. menuentry 'void (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.12.13_1--5c446385-ccd9-45d1-b222-006ad712d451' {
  190. savedefault
  191. insmod part_gpt
  192. insmod ext2
  193. set root='hd0,gpt3'
  194. if [ x$feature_platform_search_hint = xy ]; then
  195. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 5c446385-ccd9-45d1-b222-006ad712d451
  196. else
  197. search --no-floppy --fs-uuid --set=root 5c446385-ccd9-45d1-b222-006ad712d451
  198. fi
  199. linux /boot/vmlinuz-4.12.13_1 root=/dev/sda3
  200. initrd /boot/initramfs-4.12.13_1.img
  201. }
  202. }
  203.  
  204. menuentry 'unknown Linux distribution (on /dev/sda4)' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-4e276e70-ee47-47e2-b436-9e8172ab1f0c' {
  205. savedefault
  206. insmod part_gpt
  207. insmod ext2
  208. set root='hd0,gpt4'
  209. if [ x$feature_platform_search_hint = xy ]; then
  210. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 4e276e70-ee47-47e2-b436-9e8172ab1f0c
  211. else
  212. search --no-floppy --fs-uuid --set=root 4e276e70-ee47-47e2-b436-9e8172ab1f0c
  213. fi
  214. linux /boot/vmlinuz-Crux root=/dev/sda4
  215. }
  216. submenu 'Advanced options for unknown Linux distribution (on /dev/sda4)' $menuentry_id_option 'osprober-gnulinux-advanced-4e276e70-ee47-47e2-b436-9e8172ab1f0c' {
  217. menuentry 'unknown Linux distribution (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-Crux--4e276e70-ee47-47e2-b436-9e8172ab1f0c' {
  218. savedefault
  219. insmod part_gpt
  220. insmod ext2
  221. set root='hd0,gpt4'
  222. if [ x$feature_platform_search_hint = xy ]; then
  223. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 4e276e70-ee47-47e2-b436-9e8172ab1f0c
  224. else
  225. search --no-floppy --fs-uuid --set=root 4e276e70-ee47-47e2-b436-9e8172ab1f0c
  226. fi
  227. linux /boot/vmlinuz-Crux root=/dev/sda4
  228. }
  229. }
  230.  
  231. ### END /etc/grub.d/30_os-prober ###
  232.  
  233. ### BEGIN /etc/grub.d/40_custom ###
  234. # This file provides an easy way to add custom menu entries. Simply type the
  235. # menu entries you want to add after this comment. Be careful not to change
  236. # the 'exec tail' line above.
  237. ### END /etc/grub.d/40_custom ###
  238.  
  239. ### BEGIN /etc/grub.d/41_custom ###
  240. if [ -f ${config_directory}/custom.cfg ]; then
  241. source ${config_directory}/custom.cfg
  242. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  243. source $prefix/custom.cfg;
  244. fi
  245. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement