spacepaste

  1.  
  2. #
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # It is automatically generated by grub-mkconfig using templates
  6. # from /etc/grub.d and settings from /etc/default/grub
  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. if [ x"${feature_menuentry_id}" = xy ]; then
  21. menuentry_id_option="--id"
  22. else
  23. menuentry_id_option=""
  24. fi
  25. export menuentry_id_option
  26. if [ "${prev_saved_entry}" ]; then
  27. set saved_entry="${prev_saved_entry}"
  28. save_env saved_entry
  29. set prev_saved_entry=
  30. save_env prev_saved_entry
  31. set boot_once=true
  32. fi
  33. function savedefault {
  34. if [ -z "${boot_once}" ]; then
  35. saved_entry="${chosen}"
  36. save_env saved_entry
  37. fi
  38. }
  39. function load_video {
  40. if [ x$feature_all_video_module = xy ]; then
  41. insmod all_video
  42. else
  43. insmod efi_gop
  44. insmod efi_uga
  45. insmod ieee1275_fb
  46. insmod vbe
  47. insmod vga
  48. insmod video_bochs
  49. insmod video_cirrus
  50. fi
  51. }
  52. if [ x$feature_default_font_path = xy ] ; then
  53. font=unicode
  54. else
  55. insmod part_msdos
  56. insmod ext2
  57. set root='hd0,msdos4'
  58. if [ x$feature_platform_search_hint = xy ]; then
  59. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 8362a861-942a-4547-952f-7786c49f2569
  60. else
  61. search --no-floppy --fs-uuid --set=root 8362a861-942a-4547-952f-7786c49f2569
  62. fi
  63. font="/usr/share/grub/unicode.pf2"
  64. fi
  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. if [ x$feature_timeout_style = xy ] ; then
  75. set timeout_style=menu
  76. set timeout=5
  77. # Fallback normal timeout code in case the timeout_style feature is
  78. # unavailable.
  79. else
  80. set timeout=5
  81. fi
  82. ### END /etc/grub.d/00_header ###
  83. ### BEGIN /etc/grub.d/10_linux ###
  84. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8362a861-942a-4547-952f-7786c49f2569' {
  85. load_video
  86. insmod gzio
  87. insmod part_msdos
  88. insmod ext2
  89. set root='hd0,msdos4'
  90. if [ x$feature_platform_search_hint = xy ]; then
  91. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 8362a861-942a-4547-952f-7786c49f2569
  92. else
  93. search --no-floppy --fs-uuid --set=root 8362a861-942a-4547-952f-7786c49f2569
  94. fi
  95. echo 'Loading Linux 4.4.52-gentoo ...'
  96. linux /boot/vmlinuz-4.4.52-gentoo root=/dev/sda4 ro
  97. }
  98. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8362a861-942a-4547-952f-7786c49f2569' {
  99. menuentry 'Gentoo GNU/Linux, with Linux 4.4.52-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.52-gentoo-advanced-8362a861-942a-4547-952f-7786c49f2569' {
  100. load_video
  101. insmod gzio
  102. insmod part_msdos
  103. insmod ext2
  104. set root='hd0,msdos4'
  105. if [ x$feature_platform_search_hint = xy ]; then
  106. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 8362a861-942a-4547-952f-7786c49f2569
  107. else
  108. search --no-floppy --fs-uuid --set=root 8362a861-942a-4547-952f-7786c49f2569
  109. fi
  110. echo 'Loading Linux 4.4.52-gentoo ...'
  111. linux /boot/vmlinuz-4.4.52-gentoo root=/dev/sda4 ro
  112. }
  113. menuentry 'Gentoo GNU/Linux, with Linux 4.4.52-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.52-gentoo-recovery-8362a861-942a-4547-952f-7786c49f2569' {
  114. load_video
  115. insmod gzio
  116. insmod part_msdos
  117. insmod ext2
  118. set root='hd0,msdos4'
  119. if [ x$feature_platform_search_hint = xy ]; then
  120. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 8362a861-942a-4547-952f-7786c49f2569
  121. else
  122. search --no-floppy --fs-uuid --set=root 8362a861-942a-4547-952f-7786c49f2569
  123. fi
  124. echo 'Loading Linux 4.4.52-gentoo ...'
  125. linux /boot/vmlinuz-4.4.52-gentoo root=/dev/sda4 ro single
  126. }
  127. }
  128. ### END /etc/grub.d/10_linux ###
  129. ### BEGIN /etc/grub.d/20_linux_xen ###
  130. ### END /etc/grub.d/20_linux_xen ###
  131. ### BEGIN /etc/grub.d/30_os-prober ###
  132. ### END /etc/grub.d/30_os-prober ###
  133. ### BEGIN /etc/grub.d/40_custom ###
  134. # This file provides an easy way to add custom menu entries. Simply type the
  135. # menu entries you want to add after this comment. Be careful not to change
  136. # the 'exec tail' line above.
  137. ### END /etc/grub.d/40_custom ###
  138. ### BEGIN /etc/grub.d/41_custom ###
  139. if [ -f ${config_directory}/custom.cfg ]; then
  140. source ${config_directory}/custom.cfg
  141. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  142. source $prefix/custom.cfg;
  143. fi
  144. ### END /etc/grub.d/41_custom ###
  145.