Advertisement
fr4zza

/boot/grub/grub.cfg

Oct 12th, 2014
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 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. set have_grubenv=true
  11. load_env
  12. fi
  13. set default="0"
  14.  
  15. if [ x"${feature_menuentry_id}" = xy ]; then
  16. menuentry_id_option="--id"
  17. else
  18. menuentry_id_option=""
  19. fi
  20.  
  21. export menuentry_id_option
  22.  
  23. if [ "${prev_saved_entry}" ]; then
  24. set saved_entry="${prev_saved_entry}"
  25. save_env saved_entry
  26. set prev_saved_entry=
  27. save_env prev_saved_entry
  28. set boot_once=true
  29. fi
  30.  
  31. function savedefault {
  32. if [ -z "${boot_once}" ]; then
  33. saved_entry="${chosen}"
  34. save_env saved_entry
  35. fi
  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_msdos
  55. insmod ext2
  56. set root='hd0,msdos5'
  57. if [ x$feature_platform_search_hint = xy ]; then
  58. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 2d7a1ddc-96bf-4943-8f65-abc1ead35a2c
  59. else
  60. search --no-floppy --fs-uuid --set=root 2d7a1ddc-96bf-4943-8f65-abc1ead35a2c
  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=en_US
  71. insmod gettext
  72. fi
  73. terminal_output gfxterm
  74. if [ "${recordfail}" = 1 ] ; then
  75. set timeout=-1
  76. else
  77. set timeout=5
  78. fi
  79. ### END /etc/grub.d/00_header ###
  80.  
  81. ### BEGIN /etc/grub.d/05_debian_theme ###
  82. insmod part_msdos
  83. insmod ext2
  84. set root='hd0,msdos5'
  85. if [ x$feature_platform_search_hint = xy ]; then
  86. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 2d7a1ddc-96bf-4943-8f65-abc1ead35a2c
  87. else
  88. search --no-floppy --fs-uuid --set=root 2d7a1ddc-96bf-4943-8f65-abc1ead35a2c
  89. fi
  90. insmod png
  91. if background_image /usr/share/images/desktop-base/kali-grub.png; then
  92. set color_normal=white/black
  93. set color_highlight=black/white
  94. else
  95. set menu_color_normal=cyan/blue
  96. set menu_color_highlight=white/blue
  97. fi
  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 'Kali GNU/Linux' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2d7a1ddc-96bf-4943-8f65-abc1ead35a2c' {
  107. load_video
  108. insmod gzio
  109. insmod part_msdos
  110. insmod ext2
  111. set root='hd0,msdos6'
  112. if [ x$feature_platform_search_hint = xy ]; then
  113. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6' b7f2f77d-3174-44be-985b-c1d56469c32a
  114. else
  115. search --no-floppy --fs-uuid --set=root b7f2f77d-3174-44be-985b-c1d56469c32a
  116. fi
  117. echo 'Loading Linux 3.14-kali1-amd64 ...'
  118. linux /vmlinuz-3.14-kali1-amd64 root=UUID=2d7a1ddc-96bf-4943-8f65-abc1ead35a2c ro initrd=/install/initrd.gz quiet
  119. echo 'Loading initial ramdisk ...'
  120. initrd /initrd.img-3.14-kali1-amd64
  121. }
  122. submenu 'Advanced options for Kali GNU/Linux' $menuentry_id_option 'gnulinux-advanced-2d7a1ddc-96bf-4943-8f65-abc1ead35a2c' {
  123. menuentry 'Kali GNU/Linux, with Linux 3.14-kali1-amd64' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-kali1-amd64-advanced-2d7a1ddc-96bf-4943-8f65-abc1ead35a2c' {
  124. load_video
  125. insmod gzio
  126. insmod part_msdos
  127. insmod ext2
  128. set root='hd0,msdos6'
  129. if [ x$feature_platform_search_hint = xy ]; then
  130. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6' b7f2f77d-3174-44be-985b-c1d56469c32a
  131. else
  132. search --no-floppy --fs-uuid --set=root b7f2f77d-3174-44be-985b-c1d56469c32a
  133. fi
  134. echo 'Loading Linux 3.14-kali1-amd64 ...'
  135. linux /vmlinuz-3.14-kali1-amd64 root=UUID=2d7a1ddc-96bf-4943-8f65-abc1ead35a2c ro initrd=/install/initrd.gz quiet
  136. echo 'Loading initial ramdisk ...'
  137. initrd /initrd.img-3.14-kali1-amd64
  138. }
  139. menuentry 'Kali GNU/Linux, with Linux 3.14-kali1-amd64 (recovery mode)' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-kali1-amd64-recovery-2d7a1ddc-96bf-4943-8f65-abc1ead35a2c' {
  140. load_video
  141. insmod gzio
  142. insmod part_msdos
  143. insmod ext2
  144. set root='hd0,msdos6'
  145. if [ x$feature_platform_search_hint = xy ]; then
  146. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6' b7f2f77d-3174-44be-985b-c1d56469c32a
  147. else
  148. search --no-floppy --fs-uuid --set=root b7f2f77d-3174-44be-985b-c1d56469c32a
  149. fi
  150. echo 'Loading Linux 3.14-kali1-amd64 ...'
  151. linux /vmlinuz-3.14-kali1-amd64 root=UUID=2d7a1ddc-96bf-4943-8f65-abc1ead35a2c ro single initrd=/install/initrd.gz
  152. echo 'Loading initial ramdisk ...'
  153. initrd /initrd.img-3.14-kali1-amd64
  154. }
  155. }
  156.  
  157. ### END /etc/grub.d/10_linux ###
  158.  
  159. ### BEGIN /etc/grub.d/20_linux_xen ###
  160.  
  161. ### END /etc/grub.d/20_linux_xen ###
  162.  
  163. ### BEGIN /etc/grub.d/30_os-prober ###
  164. menuentry 'Windows 8 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-8EAAB90FAAB8F535' {
  165. insmod part_msdos
  166. insmod ntfs
  167. set root='hd0,msdos1'
  168. if [ x$feature_platform_search_hint = xy ]; then
  169. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 8EAAB90FAAB8F535
  170. else
  171. search --no-floppy --fs-uuid --set=root 8EAAB90FAAB8F535
  172. fi
  173. drivemap -s (hd0) ${root}
  174. chainloader +1
  175. }
  176. ### END /etc/grub.d/30_os-prober ###
  177.  
  178. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  179. ### END /etc/grub.d/30_uefi-firmware ###
  180.  
  181. ### BEGIN /etc/grub.d/40_custom ###
  182. # This file provides an easy way to add custom menu entries. Simply type the
  183. # menu entries you want to add after this comment. Be careful not to change
  184. # the 'exec tail' line above.
  185. ### END /etc/grub.d/40_custom ###
  186.  
  187. ### BEGIN /etc/grub.d/41_custom ###
  188. if [ -f ${config_directory}/custom.cfg ]; then
  189. source ${config_directory}/custom.cfg
  190. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  191. source $prefix/custom.cfg;
  192. fi
  193. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement