作者 adam [bash] 2015-04-28 15:47 (点击下载)

  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. set have_grubenv=true
  11. load_env
  12. fi
  13. if [ "${next_entry}" ] ; then
  14. set default="${next_entry}"
  15. set next_entry=
  16. save_env next_entry
  17. set boot_once=true
  18. else
  19. set default="0"
  20. fi
  21.  
  22. if [ x"${feature_menuentry_id}" = xy ]; then
  23. menuentry_id_option="--id"
  24. else
  25. menuentry_id_option=""
  26. fi
  27.  
  28. export menuentry_id_option
  29.  
  30. if [ "${prev_saved_entry}" ]; then
  31. set saved_entry="${prev_saved_entry}"
  32. save_env saved_entry
  33. set prev_saved_entry=
  34. save_env prev_saved_entry
  35. set boot_once=true
  36. fi
  37.  
  38. function savedefault {
  39. if [ -z "${boot_once}" ]; then
  40. saved_entry="${chosen}"
  41. save_env saved_entry
  42. fi
  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_gpt
  62. insmod btrfs
  63. set root='hd0,gpt3'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 5334a911-628f-463d-aba2-7920bcd5ae4e
  66. else
  67. search --no-floppy --fs-uuid --set=root 5334a911-628f-463d-aba2-7920bcd5ae4e
  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 [ "${recordfail}" = 1 ] ; then
  82. set timeout=-1
  83. else
  84. if [ x$feature_timeout_style = xy ] ; then
  85. set timeout_style=menu
  86. set timeout=5
  87. # Fallback normal timeout code in case the timeout_style feature is
  88. # unavailable.
  89. else
  90. set timeout=5
  91. fi
  92. fi
  93. ### END /etc/grub.d/00_header ###
  94.  
  95. ### BEGIN /etc/grub.d/05_debian_theme ###
  96. set menu_color_normal=cyan/blue
  97. set menu_color_highlight=white/blue
  98. ### END /etc/grub.d/05_debian_theme ###
  99.  
  100. ### BEGIN /etc/grub.d/10_linux ###
  101. function gfxmode {
  102. set gfxpayload="${1}"
  103. }
  104. set linux_gfx_mode=
  105. export linux_gfx_mode
  106. menuentry 'GNU/Linux' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5334a911-628f-463d-aba2-7920bcd5ae4e' {
  107. load_video
  108. insmod gzio
  109. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  110. insmod part_gpt
  111. insmod btrfs
  112. set root='hd0,gpt3'
  113. if [ x$feature_platform_search_hint = xy ]; then
  114. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 5334a911-628f-463d-aba2-7920bcd5ae4e
  115. else
  116. search --no-floppy --fs-uuid --set=root 5334a911-628f-463d-aba2-7920bcd5ae4e
  117. fi
  118. echo 'Loading Linux 3.16.0-4-amd64 ...'
  119. linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=5334a911-628f-463d-aba2-7920bcd5ae4e ro
  120. echo 'Loading initial ramdisk ...'
  121. initrd /boot/initrd.img-3.16.0-4-amd64
  122. }
  123. submenu 'Advanced options for GNU/Linux' $menuentry_id_option 'gnulinux-advanced-5334a911-628f-463d-aba2-7920bcd5ae4e' {
  124. menuentry 'GNU/Linux, with Linux 3.16.0-4-amd64' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-5334a911-628f-463d-aba2-7920bcd5ae4e' {
  125. load_video
  126. insmod gzio
  127. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  128. insmod part_gpt
  129. insmod btrfs
  130. set root='hd0,gpt3'
  131. if [ x$feature_platform_search_hint = xy ]; then
  132. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 5334a911-628f-463d-aba2-7920bcd5ae4e
  133. else
  134. search --no-floppy --fs-uuid --set=root 5334a911-628f-463d-aba2-7920bcd5ae4e
  135. fi
  136. echo 'Loading Linux 3.16.0-4-amd64 ...'
  137. linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=5334a911-628f-463d-aba2-7920bcd5ae4e ro
  138. echo 'Loading initial ramdisk ...'
  139. initrd /boot/initrd.img-3.16.0-4-amd64
  140. }
  141. menuentry 'GNU/Linux, with Linux 3.16.0-4-amd64 (sysvinit)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-sysvinit-5334a911-628f-463d-aba2-7920bcd5ae4e' {
  142. load_video
  143. insmod gzio
  144. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  145. insmod part_gpt
  146. insmod btrfs
  147. set root='hd0,gpt3'
  148. if [ x$feature_platform_search_hint = xy ]; then
  149. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 5334a911-628f-463d-aba2-7920bcd5ae4e
  150. else
  151. search --no-floppy --fs-uuid --set=root 5334a911-628f-463d-aba2-7920bcd5ae4e
  152. fi
  153. echo 'Loading Linux 3.16.0-4-amd64 ...'
  154. linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=5334a911-628f-463d-aba2-7920bcd5ae4e ro init=/lib/sysvinit/init
  155. echo 'Loading initial ramdisk ...'
  156. initrd /boot/initrd.img-3.16.0-4-amd64
  157. }
  158. menuentry 'GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-5334a911-628f-463d-aba2-7920bcd5ae4e' {
  159. load_video
  160. insmod gzio
  161. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  162. insmod part_gpt
  163. insmod btrfs
  164. set root='hd0,gpt3'
  165. if [ x$feature_platform_search_hint = xy ]; then
  166. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 5334a911-628f-463d-aba2-7920bcd5ae4e
  167. else
  168. search --no-floppy --fs-uuid --set=root 5334a911-628f-463d-aba2-7920bcd5ae4e
  169. fi
  170. echo 'Loading Linux 3.16.0-4-amd64 ...'
  171. linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=5334a911-628f-463d-aba2-7920bcd5ae4e ro single
  172. echo 'Loading initial ramdisk ...'
  173. initrd /boot/initrd.img-3.16.0-4-amd64
  174. }
  175. }
  176.  
  177. ### END /etc/grub.d/10_linux ###
  178.  
  179. ### BEGIN /etc/grub.d/20_linux_xen ###
  180.  
  181. ### END /etc/grub.d/20_linux_xen ###
  182.  
  183. ### BEGIN /etc/grub.d/30_os-prober ###
  184. ### END /etc/grub.d/30_os-prober ###
  185.  
  186. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  187. menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
  188. fwsetup
  189. }
  190. ### END /etc/grub.d/30_uefi-firmware ###
  191.  
  192. ### BEGIN /etc/grub.d/40_custom ###
  193. # This file provides an easy way to add custom menu entries. Simply type the
  194. # menu entries you want to add after this comment. Be careful not to change
  195. # the 'exec tail' line above.
  196. ### END /etc/grub.d/40_custom ###
  197.  
  198. ### BEGIN /etc/grub.d/41_custom ###
  199. if [ -f ${config_directory}/custom.cfg ]; then
  200. source ${config_directory}/custom.cfg
  201. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  202. source $prefix/custom.cfg;
  203. fi
  204. ### END /etc/grub.d/41_custom ###

提交下面的校正或者修改. (点击这里开始一个新的帖子)
姓名: 在 cookie 中记住我的名字

屏幕抓图:(jpeg 或 png)