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_gpt
  56. insmod ext2
  57. if [ x$feature_platform_search_hint = xy ]; then
  58. search --no-floppy --fs-uuid --set=root 50da16cf-8780-4e54-a1de-39616dd276bb
  59. else
  60. search --no-floppy --fs-uuid --set=root 50da16cf-8780-4e54-a1de-39616dd276bb
  61. fi
  62. font="/usr/share/grub/unicode.pf2"
  63. fi
  64. if loadfont $font ; then
  65. set gfxmode=auto
  66. load_video
  67. insmod gfxterm
  68. set locale_dir=$prefix/locale
  69. set lang=en_US
  70. insmod gettext
  71. fi
  72. terminal_output gfxterm
  73. if [ x$feature_timeout_style = xy ] ; then
  74. set timeout_style=menu
  75. set timeout=5
  76. # Fallback normal timeout code in case the timeout_style feature is
  77. # unavailable.
  78. else
  79. set timeout=5
  80. fi
  81. ### END /etc/grub.d/00_header ###
  82. ### BEGIN /etc/grub.d/10_linux ###
  83. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-50da16cf-8780-4e54-a1de-39616dd276bb' {
  84. load_video
  85. if [ "x$grub_platform" = xefi ]; then
  86. set gfxpayload=keep
  87. fi
  88. insmod gzio
  89. insmod part_gpt
  90. insmod ext2
  91. if [ x$feature_platform_search_hint = xy ]; then
  92. search --no-floppy --fs-uuid --set=root 50da16cf-8780-4e54-a1de-39616dd276bb
  93. else
  94. search --no-floppy --fs-uuid --set=root 50da16cf-8780-4e54-a1de-39616dd276bb
  95. fi
  96. echo 'Loading Linux 4.17.10-gentoo ...'
  97. linux /boot/vmlinuz-4.17.10-gentoo root=/dev/nvme0n1p2 ro
  98. }
  99. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-50da16cf-8780-4e54-a1de-39616dd276bb' {
  100. menuentry 'Gentoo GNU/Linux, with Linux 4.17.10-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.17.10-gentoo-advanced-50da16cf-8780-4e54-a1de-39616dd276bb' {
  101. load_video
  102. if [ "x$grub_platform" = xefi ]; then
  103. set gfxpayload=keep
  104. fi
  105. insmod gzio
  106. insmod part_gpt
  107. insmod ext2
  108. if [ x$feature_platform_search_hint = xy ]; then
  109. search --no-floppy --fs-uuid --set=root 50da16cf-8780-4e54-a1de-39616dd276bb
  110. else
  111. search --no-floppy --fs-uuid --set=root 50da16cf-8780-4e54-a1de-39616dd276bb
  112. fi
  113. echo 'Loading Linux 4.17.10-gentoo ...'
  114. linux /boot/vmlinuz-4.17.10-gentoo root=/dev/nvme0n1p2 ro
  115. }
  116. menuentry 'Gentoo GNU/Linux, with Linux 4.17.10-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.17.10-gentoo-recovery-50da16cf-8780-4e54-a1de-39616dd276bb' {
  117. load_video
  118. if [ "x$grub_platform" = xefi ]; then
  119. set gfxpayload=keep
  120. fi
  121. insmod gzio
  122. insmod part_gpt
  123. insmod ext2
  124. if [ x$feature_platform_search_hint = xy ]; then
  125. search --no-floppy --fs-uuid --set=root 50da16cf-8780-4e54-a1de-39616dd276bb
  126. else
  127. search --no-floppy --fs-uuid --set=root 50da16cf-8780-4e54-a1de-39616dd276bb
  128. fi
  129. echo 'Loading Linux 4.17.10-gentoo ...'
  130. linux /boot/vmlinuz-4.17.10-gentoo root=/dev/nvme0n1p2 ro single
  131. }
  132. }
  133. ### END /etc/grub.d/10_linux ###
  134. ### BEGIN /etc/grub.d/20_linux_xen ###
  135. ### END /etc/grub.d/20_linux_xen ###
  136. ### BEGIN /etc/grub.d/30_os-prober ###
  137. ### END /etc/grub.d/30_os-prober ###
  138. ### BEGIN /etc/grub.d/40_custom ###
  139. # This file provides an easy way to add custom menu entries. Simply type the
  140. # menu entries you want to add after this comment. Be careful not to change
  141. # the 'exec tail' line above.
  142. ### END /etc/grub.d/40_custom ###
  143. ### BEGIN /etc/grub.d/41_custom ###
  144. if [ -f ${config_directory}/custom.cfg ]; then
  145. source ${config_directory}/custom.cfg
  146. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  147. source $prefix/custom.cfg;
  148. fi
  149. ### END /etc/grub.d/41_custom ###
  150.