Advertisement
Guest User

Untitled

a guest
Sep 20th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. #
  2. # DO NOT EDIT THIS FILE
  3. #
  4. # It is automatically generated by grub2-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_gpt
  55. insmod ext2
  56. set root='hd4,gpt4'
  57. if [ x$feature_platform_search_hint = xy ]; then
  58. search --no-floppy --fs-uuid --set=root --hint-bios=hd4,gpt4 --hint-efi=hd4,gpt4 --hint-baremetal=ahci4,gpt4 3c161f01-0c84-4472-a564-7b7b89f2cfca
  59. else
  60. search --no-floppy --fs-uuid --set=root 3c161f01-0c84-4472-a564-7b7b89f2cfca
  61. fi
  62. font="/usr/share/grub/unicode.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=
  71. insmod gettext
  72. fi
  73. terminal_output gfxterm
  74. if sleep --interruptible 0 ; then
  75. set timeout=10
  76. fi
  77. ### END /etc/grub.d/00_header ###
  78.  
  79. ### BEGIN /etc/grub.d/10_linux ###
  80. menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3c161f01-0c84-4472-a564-7b7b89f2cfca' {
  81. load_video
  82. set gfxpayload=keep
  83. insmod gzio
  84. insmod part_gpt
  85. insmod ext2
  86. set root='hd4,gpt2'
  87. if [ x$feature_platform_search_hint = xy ]; then
  88. search --no-floppy --fs-uuid --set=root --hint-bios=hd4,gpt2 --hint-efi=hd4,gpt2 --hint-baremetal=ahci4,gpt2 76e300ec-871b-4ea1-838b-83823fd71795
  89. else
  90. search --no-floppy --fs-uuid --set=root 76e300ec-871b-4ea1-838b-83823fd71795
  91. fi
  92. echo 'Loading Linux 3.4.9-gentoo ...'
  93. linux /vmlinuz-3.4.9-gentoo root=/dev/sde4 ro rootfstype=ext4
  94. }
  95. submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-3c161f01-0c84-4472-a564-7b7b89f2cfca' {
  96. menuentry 'Gentoo GNU/Linux, with Linux 3.4.9-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.9-gentoo-advanced-3c161f01-0c84-4472-a564-7b7b89f2cfca' {
  97. load_video
  98. set gfxpayload=keep
  99. insmod gzio
  100. insmod part_gpt
  101. insmod ext2
  102. set root='hd4,gpt2'
  103. if [ x$feature_platform_search_hint = xy ]; then
  104. search --no-floppy --fs-uuid --set=root --hint-bios=hd4,gpt2 --hint-efi=hd4,gpt2 --hint-baremetal=ahci4,gpt2 76e300ec-871b-4ea1-838b-83823fd71795
  105. else
  106. search --no-floppy --fs-uuid --set=root 76e300ec-871b-4ea1-838b-83823fd71795
  107. fi
  108. echo 'Loading Linux 3.4.9-gentoo ...'
  109. linux /vmlinuz-3.4.9-gentoo root=/dev/sde4 ro rootfstype=ext4
  110. }
  111. menuentry 'Gentoo GNU/Linux, with Linux 3.4.9-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.9-gentoo-recovery-3c161f01-0c84-4472-a564-7b7b89f2cfca' {
  112. load_video
  113. set gfxpayload=keep
  114. insmod gzio
  115. insmod part_gpt
  116. insmod ext2
  117. set root='hd4,gpt2'
  118. if [ x$feature_platform_search_hint = xy ]; then
  119. search --no-floppy --fs-uuid --set=root --hint-bios=hd4,gpt2 --hint-efi=hd4,gpt2 --hint-baremetal=ahci4,gpt2 76e300ec-871b-4ea1-838b-83823fd71795
  120. else
  121. search --no-floppy --fs-uuid --set=root 76e300ec-871b-4ea1-838b-83823fd71795
  122. fi
  123. echo 'Loading Linux 3.4.9-gentoo ...'
  124. linux /vmlinuz-3.4.9-gentoo root=/dev/sde4 ro single
  125. }
  126. }
  127.  
  128. ### END /etc/grub.d/10_linux ###
  129.  
  130. ### BEGIN /etc/grub.d/20_linux_xen ###
  131. ### END /etc/grub.d/20_linux_xen ###
  132.  
  133. ### BEGIN /etc/grub.d/30_os-prober ###
  134. ### END /etc/grub.d/30_os-prober ###
  135.  
  136. ### BEGIN /etc/grub.d/40_custom ###
  137. # This file provides an easy way to add custom menu entries. Simply type the
  138. # menu entries you want to add after this comment. Be careful not to change
  139. # the 'exec tail' line above.
  140. ### END /etc/grub.d/40_custom ###
  141.  
  142. ### BEGIN /etc/grub.d/41_custom ###
  143. if [ -f ${config_directory}/custom.cfg ]; then
  144. source ${config_directory}/custom.cfg
  145. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  146. source $prefix/custom.cfg;
  147. fi
  148. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement