Advertisement
costis

grub.cfg

Dec 19th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.48 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. if [ "${next_entry}" ] ; then
  13. set default="${next_entry}"
  14. set next_entry=
  15. save_env next_entry
  16. set boot_once=true
  17. else
  18. set default="0"
  19. fi
  20.  
  21. if [ x"${feature_menuentry_id}" = xy ]; then
  22. menuentry_id_option="--id"
  23. else
  24. menuentry_id_option=""
  25. fi
  26.  
  27. export menuentry_id_option
  28.  
  29. if [ "${prev_saved_entry}" ]; then
  30. set saved_entry="${prev_saved_entry}"
  31. save_env saved_entry
  32. set prev_saved_entry=
  33. save_env prev_saved_entry
  34. set boot_once=true
  35. fi
  36.  
  37. function savedefault {
  38. if [ -z "${boot_once}" ]; then
  39. saved_entry="${chosen}"
  40. save_env saved_entry
  41. fi
  42. }
  43.  
  44. function load_video {
  45. if [ x$feature_all_video_module = xy ]; then
  46. insmod all_video
  47. else
  48. insmod efi_gop
  49. insmod efi_uga
  50. insmod ieee1275_fb
  51. insmod vbe
  52. insmod vga
  53. insmod video_bochs
  54. insmod video_cirrus
  55. fi
  56. }
  57.  
  58. if [ x$feature_default_font_path = xy ] ; then
  59. font=unicode
  60. else
  61. insmod part_msdos
  62. insmod ext2
  63. set root='hd1,msdos1'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  66. else
  67. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  68. fi
  69. font="/usr/share/grub/unicode.pf2"
  70. fi
  71.  
  72. if loadfont $font ; then
  73. set gfxmode=auto
  74. load_video
  75. insmod gfxterm
  76. set locale_dir=$prefix/locale
  77. set lang=en_US
  78. insmod gettext
  79. fi
  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. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  93. load_video
  94. insmod gzio
  95. insmod part_msdos
  96. insmod ext2
  97. set root='hd1,msdos1'
  98. if [ x$feature_platform_search_hint = xy ]; then
  99. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  100. else
  101. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  102. fi
  103. echo 'Loading Linux Take1-x86_64-4.12.12-gentoo ...'
  104. linux /boot/kernel-Take1-x86_64-4.12.12-gentoo root=/dev/sdb1 ro
  105. }
  106. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  107. menuentry 'Gentoo GNU/Linux, with Linux Take1-x86_64-4.12.12-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-Take1-x86_64-4.12.12-gentoo-advanced-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  108. load_video
  109. insmod gzio
  110. insmod part_msdos
  111. insmod ext2
  112. set root='hd1,msdos1'
  113. if [ x$feature_platform_search_hint = xy ]; then
  114. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  115. else
  116. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  117. fi
  118. echo 'Loading Linux Take1-x86_64-4.12.12-gentoo ...'
  119. linux /boot/kernel-Take1-x86_64-4.12.12-gentoo root=/dev/sdb1 ro
  120. }
  121. menuentry 'Gentoo GNU/Linux, with Linux Take1-x86_64-4.12.12-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-Take1-x86_64-4.12.12-gentoo-recovery-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  122. load_video
  123. insmod gzio
  124. insmod part_msdos
  125. insmod ext2
  126. set root='hd1,msdos1'
  127. if [ x$feature_platform_search_hint = xy ]; then
  128. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  129. else
  130. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  131. fi
  132. echo 'Loading Linux Take1-x86_64-4.12.12-gentoo ...'
  133. linux /boot/kernel-Take1-x86_64-4.12.12-gentoo root=/dev/sdb1 ro single
  134. }
  135. menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.12.12-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.12.12-gentoo-advanced-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  136. load_video
  137. if [ "x$grub_platform" = xefi ]; then
  138. set gfxpayload=keep
  139. fi
  140. insmod gzio
  141. insmod part_msdos
  142. insmod ext2
  143. set root='hd1,msdos1'
  144. if [ x$feature_platform_search_hint = xy ]; then
  145. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  146. else
  147. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  148. fi
  149. echo 'Loading Linux x86_64-4.12.12-gentoo ...'
  150. linux /boot/kernel-GenKernel-x86_64-4.12.12-gentoo root=UUID=52ce8f01-8b7b-4d96-8627-cc3634dac242 ro
  151. echo 'Loading initial ramdisk ...'
  152. initrd /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
  153. }
  154. menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.12.12-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.12.12-gentoo-recovery-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  155. load_video
  156. if [ "x$grub_platform" = xefi ]; then
  157. set gfxpayload=keep
  158. fi
  159. insmod gzio
  160. insmod part_msdos
  161. insmod ext2
  162. set root='hd1,msdos1'
  163. if [ x$feature_platform_search_hint = xy ]; then
  164. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  165. else
  166. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  167. fi
  168. echo 'Loading Linux x86_64-4.12.12-gentoo ...'
  169. linux /boot/kernel-GenKernel-x86_64-4.12.12-gentoo root=UUID=52ce8f01-8b7b-4d96-8627-cc3634dac242 ro single
  170. echo 'Loading initial ramdisk ...'
  171. initrd /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
  172. }
  173. menuentry 'Gentoo GNU/Linux, with Linux 4.14.7' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.7-advanced-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  174. load_video
  175. if [ "x$grub_platform" = xefi ]; then
  176. set gfxpayload=keep
  177. fi
  178. insmod gzio
  179. insmod part_msdos
  180. insmod ext2
  181. set root='hd1,msdos1'
  182. if [ x$feature_platform_search_hint = xy ]; then
  183. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  184. else
  185. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  186. fi
  187. echo 'Loading Linux 4.14.7 ...'
  188. linux /boot/vmlinuz-4.14.7 root=/dev/sdb1 ro
  189. }
  190. menuentry 'Gentoo GNU/Linux, with Linux 4.14.7 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.7-recovery-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  191. load_video
  192. if [ "x$grub_platform" = xefi ]; then
  193. set gfxpayload=keep
  194. fi
  195. insmod gzio
  196. insmod part_msdos
  197. insmod ext2
  198. set root='hd1,msdos1'
  199. if [ x$feature_platform_search_hint = xy ]; then
  200. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  201. else
  202. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  203. fi
  204. echo 'Loading Linux 4.14.7 ...'
  205. linux /boot/vmlinuz-4.14.7 root=/dev/sdb1 ro single
  206. }
  207. menuentry 'Gentoo GNU/Linux, with Linux 4.14.7.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.7.old-advanced-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  208. load_video
  209. if [ "x$grub_platform" = xefi ]; then
  210. set gfxpayload=keep
  211. fi
  212. insmod gzio
  213. insmod part_msdos
  214. insmod ext2
  215. set root='hd1,msdos1'
  216. if [ x$feature_platform_search_hint = xy ]; then
  217. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  218. else
  219. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  220. fi
  221. echo 'Loading Linux 4.14.7.old ...'
  222. linux /boot/vmlinuz-4.14.7.old root=/dev/sdb1 ro
  223. }
  224. menuentry 'Gentoo GNU/Linux, with Linux 4.14.7.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.7.old-recovery-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  225. load_video
  226. if [ "x$grub_platform" = xefi ]; then
  227. set gfxpayload=keep
  228. fi
  229. insmod gzio
  230. insmod part_msdos
  231. insmod ext2
  232. set root='hd1,msdos1'
  233. if [ x$feature_platform_search_hint = xy ]; then
  234. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  235. else
  236. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  237. fi
  238. echo 'Loading Linux 4.14.7.old ...'
  239. linux /boot/vmlinuz-4.14.7.old root=/dev/sdb1 ro single
  240. }
  241. menuentry 'Gentoo GNU/Linux, with Linux 4.12.12-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.12-gentoo-advanced-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  242. load_video
  243. if [ "x$grub_platform" = xefi ]; then
  244. set gfxpayload=keep
  245. fi
  246. insmod gzio
  247. insmod part_msdos
  248. insmod ext2
  249. set root='hd1,msdos1'
  250. if [ x$feature_platform_search_hint = xy ]; then
  251. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  252. else
  253. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  254. fi
  255. echo 'Loading Linux 4.12.12-gentoo ...'
  256. linux /boot/vmlinuz-4.12.12-gentoo root=UUID=52ce8f01-8b7b-4d96-8627-cc3634dac242 ro
  257. echo 'Loading initial ramdisk ...'
  258. initrd /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
  259. }
  260. menuentry 'Gentoo GNU/Linux, with Linux 4.12.12-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.12-gentoo-recovery-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  261. load_video
  262. if [ "x$grub_platform" = xefi ]; then
  263. set gfxpayload=keep
  264. fi
  265. insmod gzio
  266. insmod part_msdos
  267. insmod ext2
  268. set root='hd1,msdos1'
  269. if [ x$feature_platform_search_hint = xy ]; then
  270. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  271. else
  272. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  273. fi
  274. echo 'Loading Linux 4.12.12-gentoo ...'
  275. linux /boot/vmlinuz-4.12.12-gentoo root=UUID=52ce8f01-8b7b-4d96-8627-cc3634dac242 ro single
  276. echo 'Loading initial ramdisk ...'
  277. initrd /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
  278. }
  279. menuentry 'Gentoo GNU/Linux, with Linux 4.12.12-gentoo.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.12-gentoo.old-advanced-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  280. load_video
  281. if [ "x$grub_platform" = xefi ]; then
  282. set gfxpayload=keep
  283. fi
  284. insmod gzio
  285. insmod part_msdos
  286. insmod ext2
  287. set root='hd1,msdos1'
  288. if [ x$feature_platform_search_hint = xy ]; then
  289. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  290. else
  291. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  292. fi
  293. echo 'Loading Linux 4.12.12-gentoo.old ...'
  294. linux /boot/vmlinuz-4.12.12-gentoo.old root=UUID=52ce8f01-8b7b-4d96-8627-cc3634dac242 ro
  295. echo 'Loading initial ramdisk ...'
  296. initrd /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
  297. }
  298. menuentry 'Gentoo GNU/Linux, with Linux 4.12.12-gentoo.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.12.12-gentoo.old-recovery-52ce8f01-8b7b-4d96-8627-cc3634dac242' {
  299. load_video
  300. if [ "x$grub_platform" = xefi ]; then
  301. set gfxpayload=keep
  302. fi
  303. insmod gzio
  304. insmod part_msdos
  305. insmod ext2
  306. set root='hd1,msdos1'
  307. if [ x$feature_platform_search_hint = xy ]; then
  308. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 52ce8f01-8b7b-4d96-8627-cc3634dac242
  309. else
  310. search --no-floppy --fs-uuid --set=root 52ce8f01-8b7b-4d96-8627-cc3634dac242
  311. fi
  312. echo 'Loading Linux 4.12.12-gentoo.old ...'
  313. linux /boot/vmlinuz-4.12.12-gentoo.old root=UUID=52ce8f01-8b7b-4d96-8627-cc3634dac242 ro single
  314. echo 'Loading initial ramdisk ...'
  315. initrd /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
  316. }
  317. }
  318.  
  319. ### END /etc/grub.d/10_linux ###
  320.  
  321. ### BEGIN /etc/grub.d/20_linux_xen ###
  322. ### END /etc/grub.d/20_linux_xen ###
  323.  
  324. ### BEGIN /etc/grub.d/30_os-prober ###
  325. ### END /etc/grub.d/30_os-prober ###
  326.  
  327. ### BEGIN /etc/grub.d/40_custom ###
  328. # This file provides an easy way to add custom menu entries. Simply type the
  329. # menu entries you want to add after this comment. Be careful not to change
  330. # the 'exec tail' line above.
  331. ### END /etc/grub.d/40_custom ###
  332.  
  333. ### BEGIN /etc/grub.d/41_custom ###
  334. if [ -f ${config_directory}/custom.cfg ]; then
  335. source ${config_directory}/custom.cfg
  336. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  337. source $prefix/custom.cfg;
  338. fi
  339. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement