Advertisement
timcowchip

grub on crux

May 8th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.32 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. if [ -s $prefix/grubenv ]; then
  10. load_env
  11. fi
  12. set default="0"
  13.  
  14. if [ x"${feature_menuentry_id}" = xy ]; then
  15. menuentry_id_option="--id"
  16. else
  17. menuentry_id_option=""
  18. fi
  19.  
  20. export menuentry_id_option
  21.  
  22. if [ "${prev_saved_entry}" ]; then
  23. set saved_entry="${prev_saved_entry}"
  24. save_env saved_entry
  25. set prev_saved_entry=
  26. save_env prev_saved_entry
  27. set boot_once=true
  28. fi
  29.  
  30. function savedefault {
  31. if [ -z "${boot_once}" ]; then
  32. saved_entry="${chosen}"
  33. save_env saved_entry
  34. fi
  35. }
  36.  
  37. function load_video {
  38. if [ x$feature_all_video_module = xy ]; then
  39. insmod all_video
  40. else
  41. insmod efi_gop
  42. insmod efi_uga
  43. insmod ieee1275_fb
  44. insmod vbe
  45. insmod vga
  46. insmod video_bochs
  47. insmod video_cirrus
  48. fi
  49. }
  50.  
  51. if [ x$feature_default_font_path = xy ] ; then
  52. font=unicode
  53. else
  54. insmod part_msdos
  55. insmod ext2
  56. set root='hd0,msdos3'
  57. if [ x$feature_platform_search_hint = xy ]; then
  58. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 029330a6-afc2-4e8b-b1c6-b7bb79347a21
  59. else
  60. search --no-floppy --fs-uuid --set=root 029330a6-afc2-4e8b-b1c6-b7bb79347a21
  61. fi
  62. font="/usr/share/grub/unifont.pf2"
  63. fi
  64.  
  65. if loadfont $font ; then
  66. set gfxmode=auto
  67. load_video
  68. insmod gfxterm
  69. set locale_dir=$prefix/locale
  70. set lang=en_US
  71. insmod gettext
  72. fi
  73. terminal_output gfxterm
  74. set timeout=5
  75. ### END /etc/grub.d/00_header ###
  76.  
  77. ### BEGIN /etc/grub.d/10_linux ###
  78.  
  79. ### END /etc/grub.d/10_linux ###
  80.  
  81. ### BEGIN /etc/grub.d/20_linux_xen ###
  82. ### END /etc/grub.d/20_linux_xen ###
  83.  
  84. ### BEGIN /etc/grub.d/30_os-prober ###
  85. menuentry 'Gentoo Base System release 2.2' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-af1913e2-79f4-4d3c-8b43-b68d70842410' {
  86. insmod part_msdos
  87. insmod ext2
  88. set root='hd0,msdos1'
  89. if [ x$feature_platform_search_hint = xy ]; then
  90. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 af1913e2-79f4-4d3c-8b43-b68d70842410
  91. else
  92. search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  93. fi
  94. linux /boot/kernel-genkernel-x86_64-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro
  95. initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  96. }
  97. submenu 'Advanced options for Gentoo Base System release 2.2' $menuentry_id_option 'osprober-gnulinux-advanced-af1913e2-79f4-4d3c-8b43-b68d70842410' {
  98. menuentry 'Gentoo GNU/Linux (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.12.13-gentoo--af1913e2-79f4-4d3c-8b43-b68d70842410' {
  99. insmod part_msdos
  100. insmod ext2
  101. set root='hd0,msdos1'
  102. if [ x$feature_platform_search_hint = xy ]; then
  103. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 af1913e2-79f4-4d3c-8b43-b68d70842410
  104. else
  105. search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  106. fi
  107. linux /boot/kernel-genkernel-x86_64-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro
  108. initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  109. }
  110. menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.12.13-gentoo (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.12.13-gentoo--af1913e2-79f4-4d3c-8b43-b68d70842410' {
  111. insmod part_msdos
  112. insmod ext2
  113. set root='hd0,msdos1'
  114. if [ x$feature_platform_search_hint = xy ]; then
  115. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 af1913e2-79f4-4d3c-8b43-b68d70842410
  116. else
  117. search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  118. fi
  119. linux /boot/kernel-genkernel-x86_64-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro
  120. initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  121. }
  122. menuentry 'Gentoo GNU/Linux, with Linux x86_64-3.12.13-gentoo (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.12.13-gentoo-root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro single-af1913e2-79f4-4d3c-8b43-b68d70842410' {
  123. insmod part_msdos
  124. insmod ext2
  125. set root='hd0,msdos1'
  126. if [ x$feature_platform_search_hint = xy ]; then
  127. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 af1913e2-79f4-4d3c-8b43-b68d70842410
  128. else
  129. search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  130. fi
  131. linux /boot/kernel-genkernel-x86_64-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro single
  132. initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  133. }
  134. menuentry 'Gentoo GNU/Linux, with Linux 3.12.13-gentoo (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.12.13-gentoo--af1913e2-79f4-4d3c-8b43-b68d70842410' {
  135. insmod part_msdos
  136. insmod ext2
  137. set root='hd0,msdos1'
  138. if [ x$feature_platform_search_hint = xy ]; then
  139. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 af1913e2-79f4-4d3c-8b43-b68d70842410
  140. else
  141. search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  142. fi
  143. linux /boot/kernel-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro
  144. initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  145. }
  146. menuentry 'Gentoo GNU/Linux, with Linux 3.12.13-gentoo (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-3.12.13-gentoo-root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro single-af1913e2-79f4-4d3c-8b43-b68d70842410' {
  147. insmod part_msdos
  148. insmod ext2
  149. set root='hd0,msdos1'
  150. if [ x$feature_platform_search_hint = xy ]; then
  151. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 af1913e2-79f4-4d3c-8b43-b68d70842410
  152. else
  153. search --no-floppy --fs-uuid --set=root af1913e2-79f4-4d3c-8b43-b68d70842410
  154. fi
  155. linux /boot/kernel-3.12.13-gentoo root=UUID=af1913e2-79f4-4d3c-8b43-b68d70842410 ro single
  156. initrd /boot/initramfs-genkernel-x86_64-3.12.13-gentoo
  157. }
  158. }
  159.  
  160. menuentry 'Slackware Linux (Slackware 14.1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  161. insmod part_msdos
  162. insmod ext2
  163. set root='hd0,msdos2'
  164. if [ x$feature_platform_search_hint = xy ]; then
  165. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  166. else
  167. search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  168. fi
  169. linux /boot/vmlinuz-huge-3.10.30 root=/dev/sda2 ro vt.default_utf8=1 quiet
  170. }
  171. submenu 'Advanced options for Slackware Linux (Slackware 14.1)' $menuentry_id_option 'osprober-gnulinux-advanced-1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  172. menuentry 'Slackel 14.1 GNU/Linux (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.30--1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  173. insmod part_msdos
  174. insmod ext2
  175. set root='hd0,msdos2'
  176. if [ x$feature_platform_search_hint = xy ]; then
  177. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  178. else
  179. search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  180. fi
  181. linux /boot/vmlinuz-huge-3.10.30 root=/dev/sda2 ro vt.default_utf8=1 quiet
  182. }
  183. menuentry 'Slackel 14.1 GNU/Linux, with Linux 3.10.30 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.30--1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  184. insmod part_msdos
  185. insmod ext2
  186. set root='hd0,msdos2'
  187. if [ x$feature_platform_search_hint = xy ]; then
  188. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  189. else
  190. search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  191. fi
  192. linux /boot/vmlinuz-huge-3.10.30 root=/dev/sda2 ro vt.default_utf8=1 quiet
  193. }
  194. menuentry 'Slackware Linux (Slackware 14.1) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.30--1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  195. insmod part_msdos
  196. insmod ext2
  197. set root='hd0,msdos2'
  198. if [ x$feature_platform_search_hint = xy ]; then
  199. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  200. else
  201. search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  202. fi
  203. linux /boot/vmlinuz-huge-3.10.30 root=/dev/sda2 ro vt.default_utf8=1 quiet
  204. }
  205. menuentry 'unknown Linux distribution (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--1131b7e0-63f7-4b4e-82f4-55d99f4919fd' {
  206. insmod part_msdos
  207. insmod ext2
  208. set root='hd0,msdos2'
  209. if [ x$feature_platform_search_hint = xy ]; then
  210. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  211. else
  212. search --no-floppy --fs-uuid --set=root 1131b7e0-63f7-4b4e-82f4-55d99f4919fd
  213. fi
  214. linux /boot/vmlinuz root=/dev/sda3
  215. }
  216. }
  217.  
  218. ### END /etc/grub.d/30_os-prober ###
  219.  
  220. ### BEGIN /etc/grub.d/40_custom ###
  221. # This file provides an easy way to add custom menu entries. Simply type the
  222. # menu entries you want to add after this comment. Be careful not to change
  223. # the 'exec tail' line above.
  224. ### END /etc/grub.d/40_custom ###
  225.  
  226. ### BEGIN /etc/grub.d/41_custom ###
  227. if [ -f ${config_directory}/custom.cfg ]; then
  228. source ${config_directory}/custom.cfg
  229. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  230. source $prefix/custom.cfg;
  231. fi
  232. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement