Advertisement
Guest User

Kali_Grub2.cfg

a guest
Aug 17th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.89 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. 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_msdos
  62. insmod ext2
  63. set root='hd3,msdos5'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos5 --hint-efi=hd3,msdos5 --hint-baremetal=ahci3,msdos5 b0d540ac-4343-446d-b7f3-80faa4656237
  66. else
  67. search --no-floppy --fs-uuid --set=root b0d540ac-4343-446d-b7f3-80faa4656237
  68. fi
  69. font="/usr/share/grub/unicode.pf2"
  70. fi
  71.  
  72. if loadfont $font ; then
  73. set gfxmode=1280x720,1280x800,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. insmod part_msdos
  82. insmod ext2
  83. set root='hd3,msdos5'
  84. if [ x$feature_platform_search_hint = xy ]; then
  85. search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos5 --hint-efi=hd3,msdos5 --hint-baremetal=ahci3,msdos5 b0d540ac-4343-446d-b7f3-80faa4656237
  86. else
  87. search --no-floppy --fs-uuid --set=root b0d540ac-4343-446d-b7f3-80faa4656237
  88. fi
  89. insmod gfxmenu
  90. loadfont ($root)/boot/grub/themes/kali/unifont-regular-16.pf2
  91. insmod png
  92. set theme=($root)/boot/grub/themes/kali/theme.txt
  93. export theme
  94. if [ "${recordfail}" = 1 ] ; then
  95. set timeout=30
  96. else
  97. if [ x$feature_timeout_style = xy ] ; then
  98. set timeout_style=menu
  99. set timeout=5
  100. # Fallback normal timeout code in case the timeout_style feature is
  101. # unavailable.
  102. else
  103. set timeout=5
  104. fi
  105. fi
  106. ### END /etc/grub.d/00_header ###
  107.  
  108. ### BEGIN /etc/grub.d/05_debian_theme ###
  109. set menu_color_normal=cyan/blue
  110. set menu_color_highlight=white/blue
  111. ### END /etc/grub.d/05_debian_theme ###
  112.  
  113. ### BEGIN /etc/grub.d/10_linux ###
  114. function gfxmode {
  115. set gfxpayload="${1}"
  116. }
  117. set linux_gfx_mode=
  118. export linux_gfx_mode
  119. menuentry 'Kali GNU/Linux' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b0d540ac-4343-446d-b7f3-80faa4656237' {
  120. load_video
  121. insmod gzio
  122. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  123. insmod part_msdos
  124. insmod ext2
  125. set root='hd3,msdos5'
  126. if [ x$feature_platform_search_hint = xy ]; then
  127. search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos5 --hint-efi=hd3,msdos5 --hint-baremetal=ahci3,msdos5 b0d540ac-4343-446d-b7f3-80faa4656237
  128. else
  129. search --no-floppy --fs-uuid --set=root b0d540ac-4343-446d-b7f3-80faa4656237
  130. fi
  131. echo 'Loading Linux 5.5.0-kali2-amd64 ...'
  132. linux /boot/vmlinuz-5.5.0-kali2-amd64 root=UUID=b0d540ac-4343-446d-b7f3-80faa4656237 ro quiet splash
  133. echo 'Loading initial ramdisk ...'
  134. initrd /boot/initrd.img-5.5.0-kali2-amd64
  135. }
  136. submenu 'Advanced options for Kali GNU/Linux' $menuentry_id_option 'gnulinux-advanced-b0d540ac-4343-446d-b7f3-80faa4656237' {
  137. menuentry 'Kali GNU/Linux, with Linux 5.5.0-kali2-amd64' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.5.0-kali2-amd64-advanced-b0d540ac-4343-446d-b7f3-80faa4656237' {
  138. load_video
  139. insmod gzio
  140. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  141. insmod part_msdos
  142. insmod ext2
  143. set root='hd3,msdos5'
  144. if [ x$feature_platform_search_hint = xy ]; then
  145. search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos5 --hint-efi=hd3,msdos5 --hint-baremetal=ahci3,msdos5 b0d540ac-4343-446d-b7f3-80faa4656237
  146. else
  147. search --no-floppy --fs-uuid --set=root b0d540ac-4343-446d-b7f3-80faa4656237
  148. fi
  149. echo 'Loading Linux 5.5.0-kali2-amd64 ...'
  150. linux /boot/vmlinuz-5.5.0-kali2-amd64 root=UUID=b0d540ac-4343-446d-b7f3-80faa4656237 ro quiet splash
  151. echo 'Loading initial ramdisk ...'
  152. initrd /boot/initrd.img-5.5.0-kali2-amd64
  153. }
  154. menuentry 'Kali GNU/Linux, with Linux 5.5.0-kali2-amd64 (recovery mode)' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.5.0-kali2-amd64-recovery-b0d540ac-4343-446d-b7f3-80faa4656237' {
  155. load_video
  156. insmod gzio
  157. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  158. insmod part_msdos
  159. insmod ext2
  160. set root='hd3,msdos5'
  161. if [ x$feature_platform_search_hint = xy ]; then
  162. search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos5 --hint-efi=hd3,msdos5 --hint-baremetal=ahci3,msdos5 b0d540ac-4343-446d-b7f3-80faa4656237
  163. else
  164. search --no-floppy --fs-uuid --set=root b0d540ac-4343-446d-b7f3-80faa4656237
  165. fi
  166. echo 'Loading Linux 5.5.0-kali2-amd64 ...'
  167. linux /boot/vmlinuz-5.5.0-kali2-amd64 root=UUID=b0d540ac-4343-446d-b7f3-80faa4656237 ro single
  168. echo 'Loading initial ramdisk ...'
  169. initrd /boot/initrd.img-5.5.0-kali2-amd64
  170. }
  171. }
  172.  
  173. ### END /etc/grub.d/10_linux ###
  174.  
  175. ### BEGIN /etc/grub.d/20_linux_xen ###
  176.  
  177. ### END /etc/grub.d/20_linux_xen ###
  178.  
  179. ### BEGIN /etc/grub.d/30_os-prober ###
  180. menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-DCD07924D0790654' {
  181. insmod part_msdos
  182. insmod ntfs
  183. set root='hd0,msdos1'
  184. if [ x$feature_platform_search_hint = xy ]; then
  185. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 DCD07924D0790654
  186. else
  187. search --no-floppy --fs-uuid --set=root DCD07924D0790654
  188. fi
  189. parttool ${root} hidden-
  190. drivemap -s (hd0) ${root}
  191. chainloader +1
  192. }
  193. ### END /etc/grub.d/30_os-prober ###
  194.  
  195. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  196. ### END /etc/grub.d/30_uefi-firmware ###
  197.  
  198. ### BEGIN /etc/grub.d/40_custom ###
  199. # This file provides an easy way to add custom menu entries. Simply type the
  200. # menu entries you want to add after this comment. Be careful not to change
  201. # the 'exec tail' line above.
  202. ### END /etc/grub.d/40_custom ###
  203.  
  204. ### BEGIN /etc/grub.d/41_custom ###
  205. if [ -f ${config_directory}/custom.cfg ]; then
  206. source ${config_directory}/custom.cfg
  207. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  208. source $prefix/custom.cfg;
  209. fi
  210. ### END /etc/grub.d/41_custom ###
  211.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement