Guest User

boot.grub.grub.cfg

a guest
Feb 14th, 2017
247
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 recordfail {
  45. set recordfail=1
  46. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  47. }
  48. function load_video {
  49. if [ x$feature_all_video_module = xy ]; then
  50. insmod all_video
  51. else
  52. insmod efi_gop
  53. insmod efi_uga
  54. insmod ieee1275_fb
  55. insmod vbe
  56. insmod vga
  57. insmod video_bochs
  58. insmod video_cirrus
  59. fi
  60. }
  61.  
  62. if [ x$feature_default_font_path = xy ] ; then
  63. font=unicode
  64. else
  65. insmod part_msdos
  66. insmod ext2
  67. set root='hd6,msdos2'
  68. if [ x$feature_platform_search_hint = xy ]; then
  69. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos2 --hint-efi=hd6,msdos2 --hint-baremetal=ahci6,msdos2 950c71e7-be53-4aff-a50d-0ad14d3ff618
  70. else
  71. search --no-floppy --fs-uuid --set=root 950c71e7-be53-4aff-a50d-0ad14d3ff618
  72. fi
  73. font="/usr/share/grub/unicode.pf2"
  74. fi
  75.  
  76. if loadfont $font ; then
  77. set gfxmode=auto
  78. load_video
  79. insmod gfxterm
  80. set locale_dir=$prefix/locale
  81. set lang=ru_UA
  82. insmod gettext
  83. fi
  84. terminal_output gfxterm
  85. if [ "${recordfail}" = 1 ] ; then
  86. set timeout=30
  87. else
  88. if [ x$feature_timeout_style = xy ] ; then
  89. set timeout_style=hidden
  90. set timeout=0
  91. # Fallback hidden-timeout code in case the timeout_style feature is
  92. # unavailable.
  93. elif sleep --interruptible 0 ; then
  94. set timeout=0
  95. fi
  96. fi
  97. ### END /etc/grub.d/00_header ###
  98.  
  99. ### BEGIN /etc/grub.d/05_debian_theme ###
  100. set menu_color_normal=white/black
  101. set menu_color_highlight=black/light-gray
  102. ### END /etc/grub.d/05_debian_theme ###
  103.  
  104. ### BEGIN /etc/grub.d/06_mint_theme ###
  105. set menu_color_normal=white/black
  106. set menu_color_highlight=white/light-gray
  107. ### END /etc/grub.d/06_mint_theme ###
  108.  
  109. ### BEGIN /etc/grub.d/10_linux ###
  110. function gfxmode {
  111. set gfxpayload="${1}"
  112. if [ "${1}" = "keep" ]; then
  113. set vt_handoff=vt.handoff=7
  114. else
  115. set vt_handoff=
  116. fi
  117. }
  118. if [ "${recordfail}" != 1 ]; then
  119. if [ -e ${prefix}/gfxblacklist.txt ]; then
  120. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  121. if [ ${match} = 0 ]; then
  122. set linux_gfx_mode=keep
  123. else
  124. set linux_gfx_mode=text
  125. fi
  126. else
  127. set linux_gfx_mode=text
  128. fi
  129. else
  130. set linux_gfx_mode=keep
  131. fi
  132. else
  133. set linux_gfx_mode=text
  134. fi
  135. export linux_gfx_mode
  136. menuentry 'Linux Mint 18.1 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-950c71e7-be53-4aff-a50d-0ad14d3ff618' {
  137. recordfail
  138. load_video
  139. gfxmode $linux_gfx_mode
  140. insmod gzio
  141. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  142. insmod part_msdos
  143. insmod ext2
  144. set root='hd6,msdos2'
  145. if [ x$feature_platform_search_hint = xy ]; then
  146. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos2 --hint-efi=hd6,msdos2 --hint-baremetal=ahci6,msdos2 950c71e7-be53-4aff-a50d-0ad14d3ff618
  147. else
  148. search --no-floppy --fs-uuid --set=root 950c71e7-be53-4aff-a50d-0ad14d3ff618
  149. fi
  150. linux /boot/vmlinuz-4.4.0-53-generic root=UUID=950c71e7-be53-4aff-a50d-0ad14d3ff618 ro quiet splash $vt_handoff
  151. initrd /boot/initrd.img-4.4.0-53-generic
  152. }
  153. submenu 'Дополнительные параметры для Linux Mint 18.1 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-950c71e7-be53-4aff-a50d-0ad14d3ff618' {
  154. menuentry 'Linux Mint 18.1 Cinnamon 64-bit, с Linux 4.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-advanced-950c71e7-be53-4aff-a50d-0ad14d3ff618' {
  155. recordfail
  156. load_video
  157. gfxmode $linux_gfx_mode
  158. insmod gzio
  159. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  160. insmod part_msdos
  161. insmod ext2
  162. set root='hd6,msdos2'
  163. if [ x$feature_platform_search_hint = xy ]; then
  164. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos2 --hint-efi=hd6,msdos2 --hint-baremetal=ahci6,msdos2 950c71e7-be53-4aff-a50d-0ad14d3ff618
  165. else
  166. search --no-floppy --fs-uuid --set=root 950c71e7-be53-4aff-a50d-0ad14d3ff618
  167. fi
  168. echo 'Загружается Linux 4.4.0-53-generic …'
  169. linux /boot/vmlinuz-4.4.0-53-generic root=UUID=950c71e7-be53-4aff-a50d-0ad14d3ff618 ro quiet splash $vt_handoff
  170. echo 'Загружается начальный виртуальный диск …'
  171. initrd /boot/initrd.img-4.4.0-53-generic
  172. }
  173. menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-init-upstart-950c71e7-be53-4aff-a50d-0ad14d3ff618' {
  174. recordfail
  175. load_video
  176. gfxmode $linux_gfx_mode
  177. insmod gzio
  178. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  179. insmod part_msdos
  180. insmod ext2
  181. set root='hd6,msdos2'
  182. if [ x$feature_platform_search_hint = xy ]; then
  183. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos2 --hint-efi=hd6,msdos2 --hint-baremetal=ahci6,msdos2 950c71e7-be53-4aff-a50d-0ad14d3ff618
  184. else
  185. search --no-floppy --fs-uuid --set=root 950c71e7-be53-4aff-a50d-0ad14d3ff618
  186. fi
  187. echo 'Загружается Linux 4.4.0-53-generic …'
  188. linux /boot/vmlinuz-4.4.0-53-generic root=UUID=950c71e7-be53-4aff-a50d-0ad14d3ff618 ro quiet splash $vt_handoff init=/sbin/upstart
  189. echo 'Загружается начальный виртуальный диск …'
  190. initrd /boot/initrd.img-4.4.0-53-generic
  191. }
  192. menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-recovery-950c71e7-be53-4aff-a50d-0ad14d3ff618' {
  193. recordfail
  194. load_video
  195. insmod gzio
  196. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  197. insmod part_msdos
  198. insmod ext2
  199. set root='hd6,msdos2'
  200. if [ x$feature_platform_search_hint = xy ]; then
  201. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos2 --hint-efi=hd6,msdos2 --hint-baremetal=ahci6,msdos2 950c71e7-be53-4aff-a50d-0ad14d3ff618
  202. else
  203. search --no-floppy --fs-uuid --set=root 950c71e7-be53-4aff-a50d-0ad14d3ff618
  204. fi
  205. echo 'Загружается Linux 4.4.0-53-generic …'
  206. linux /boot/vmlinuz-4.4.0-53-generic root=UUID=950c71e7-be53-4aff-a50d-0ad14d3ff618 ro recovery nomodeset
  207. echo 'Загружается начальный виртуальный диск …'
  208. initrd /boot/initrd.img-4.4.0-53-generic
  209. }
  210. }
  211.  
  212. ### END /etc/grub.d/10_linux ###
  213.  
  214. ### BEGIN /etc/grub.d/10_lupin ###
  215. ### END /etc/grub.d/10_lupin ###
  216.  
  217. ### BEGIN /etc/grub.d/20_linux_xen ###
  218.  
  219. ### END /etc/grub.d/20_linux_xen ###
  220.  
  221. ### BEGIN /etc/grub.d/20_memtest86+ ###
  222. menuentry 'Memory test (memtest86+)' {
  223. insmod part_msdos
  224. insmod ext2
  225. set root='hd6,msdos2'
  226. if [ x$feature_platform_search_hint = xy ]; then
  227. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos2 --hint-efi=hd6,msdos2 --hint-baremetal=ahci6,msdos2 950c71e7-be53-4aff-a50d-0ad14d3ff618
  228. else
  229. search --no-floppy --fs-uuid --set=root 950c71e7-be53-4aff-a50d-0ad14d3ff618
  230. fi
  231. knetbsd /boot/memtest86+.elf
  232. }
  233. menuentry 'Memory test (memtest86+, serial console 115200)' {
  234. insmod part_msdos
  235. insmod ext2
  236. set root='hd6,msdos2'
  237. if [ x$feature_platform_search_hint = xy ]; then
  238. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos2 --hint-efi=hd6,msdos2 --hint-baremetal=ahci6,msdos2 950c71e7-be53-4aff-a50d-0ad14d3ff618
  239. else
  240. search --no-floppy --fs-uuid --set=root 950c71e7-be53-4aff-a50d-0ad14d3ff618
  241. fi
  242. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  243. }
  244. ### END /etc/grub.d/20_memtest86+ ###
  245.  
  246. ### BEGIN /etc/grub.d/30_os-prober ###
  247. menuentry 'Debian GNU/Linux (9.0) (на /dev/sdg1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  248. insmod part_msdos
  249. insmod ext2
  250. set root='hd6,msdos1'
  251. if [ x$feature_platform_search_hint = xy ]; then
  252. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos1 --hint-efi=hd6,msdos1 --hint-baremetal=ahci6,msdos1 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  253. else
  254. search --no-floppy --fs-uuid --set=root 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  255. fi
  256. linux /boot/vmlinuz-4.9.0-1-amd64 root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro quiet splash
  257. initrd /boot/initrd.img-4.9.0-1-amd64
  258. }
  259. submenu 'Дополнительные параметры для Debian GNU/Linux (9.0) (на /dev/sdg1)' $menuentry_id_option 'osprober-gnulinux-advanced-6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  260. menuentry 'Debian GNU/Linux (на /dev/sdg1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.0-1-amd64--6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  261. insmod part_msdos
  262. insmod ext2
  263. set root='hd6,msdos1'
  264. if [ x$feature_platform_search_hint = xy ]; then
  265. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos1 --hint-efi=hd6,msdos1 --hint-baremetal=ahci6,msdos1 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  266. else
  267. search --no-floppy --fs-uuid --set=root 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  268. fi
  269. linux /boot/vmlinuz-4.9.0-1-amd64 root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro quiet splash
  270. initrd /boot/initrd.img-4.9.0-1-amd64
  271. }
  272. menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64 (на /dev/sdg1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.0-1-amd64--6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  273. insmod part_msdos
  274. insmod ext2
  275. set root='hd6,msdos1'
  276. if [ x$feature_platform_search_hint = xy ]; then
  277. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos1 --hint-efi=hd6,msdos1 --hint-baremetal=ahci6,msdos1 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  278. else
  279. search --no-floppy --fs-uuid --set=root 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  280. fi
  281. linux /boot/vmlinuz-4.9.0-1-amd64 root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro quiet splash
  282. initrd /boot/initrd.img-4.9.0-1-amd64
  283. }
  284. menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64 (recovery mode) (на /dev/sdg1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.0-1-amd64-root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro single-6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  285. insmod part_msdos
  286. insmod ext2
  287. set root='hd6,msdos1'
  288. if [ x$feature_platform_search_hint = xy ]; then
  289. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos1 --hint-efi=hd6,msdos1 --hint-baremetal=ahci6,msdos1 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  290. else
  291. search --no-floppy --fs-uuid --set=root 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  292. fi
  293. linux /boot/vmlinuz-4.9.0-1-amd64 root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro single
  294. initrd /boot/initrd.img-4.9.0-1-amd64
  295. }
  296. menuentry 'Debian GNU/Linux, with Linux 4.8.0-2-amd64 (на /dev/sdg1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.8.0-2-amd64--6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  297. insmod part_msdos
  298. insmod ext2
  299. set root='hd6,msdos1'
  300. if [ x$feature_platform_search_hint = xy ]; then
  301. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos1 --hint-efi=hd6,msdos1 --hint-baremetal=ahci6,msdos1 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  302. else
  303. search --no-floppy --fs-uuid --set=root 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  304. fi
  305. linux /boot/vmlinuz-4.8.0-2-amd64 root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro quiet splash
  306. initrd /boot/initrd.img-4.8.0-2-amd64
  307. }
  308. menuentry 'Debian GNU/Linux, with Linux 4.8.0-2-amd64 (recovery mode) (на /dev/sdg1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.8.0-2-amd64-root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro single-6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  309. insmod part_msdos
  310. insmod ext2
  311. set root='hd6,msdos1'
  312. if [ x$feature_platform_search_hint = xy ]; then
  313. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos1 --hint-efi=hd6,msdos1 --hint-baremetal=ahci6,msdos1 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  314. else
  315. search --no-floppy --fs-uuid --set=root 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  316. fi
  317. linux /boot/vmlinuz-4.8.0-2-amd64 root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro single
  318. initrd /boot/initrd.img-4.8.0-2-amd64
  319. }
  320. menuentry 'Debian GNU/Linux, with Linux 4.8.0-1-amd64 (на /dev/sdg1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.8.0-1-amd64--6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  321. insmod part_msdos
  322. insmod ext2
  323. set root='hd6,msdos1'
  324. if [ x$feature_platform_search_hint = xy ]; then
  325. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos1 --hint-efi=hd6,msdos1 --hint-baremetal=ahci6,msdos1 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  326. else
  327. search --no-floppy --fs-uuid --set=root 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  328. fi
  329. linux /boot/vmlinuz-4.8.0-1-amd64 root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro quiet splash
  330. initrd /boot/initrd.img-4.8.0-1-amd64
  331. }
  332. menuentry 'Debian GNU/Linux, with Linux 4.8.0-1-amd64 (recovery mode) (на /dev/sdg1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.8.0-1-amd64-root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro single-6cea3231-3236-4d43-aa31-8b4a9f7d89f5' {
  333. insmod part_msdos
  334. insmod ext2
  335. set root='hd6,msdos1'
  336. if [ x$feature_platform_search_hint = xy ]; then
  337. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos1 --hint-efi=hd6,msdos1 --hint-baremetal=ahci6,msdos1 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  338. else
  339. search --no-floppy --fs-uuid --set=root 6cea3231-3236-4d43-aa31-8b4a9f7d89f5
  340. fi
  341. linux /boot/vmlinuz-4.8.0-1-amd64 root=UUID=6cea3231-3236-4d43-aa31-8b4a9f7d89f5 ro single
  342. initrd /boot/initrd.img-4.8.0-1-amd64
  343. }
  344. }
  345.  
  346. menuentry 'Windows 10 (loader) (на /dev/sdg4)' --class windows --class os $menuentry_id_option 'osprober-chain-1A3BA53F4C0DD19C' {
  347. insmod part_msdos
  348. insmod ntfs
  349. set root='hd6,msdos4'
  350. if [ x$feature_platform_search_hint = xy ]; then
  351. search --no-floppy --fs-uuid --set=root --hint-bios=hd6,msdos4 --hint-efi=hd6,msdos4 --hint-baremetal=ahci6,msdos4 1A3BA53F4C0DD19C
  352. else
  353. search --no-floppy --fs-uuid --set=root 1A3BA53F4C0DD19C
  354. fi
  355. parttool ${root} hidden-
  356. drivemap -s (hd0) ${root}
  357. chainloader +1
  358. }
  359. set timeout_style=menu
  360. if [ "${timeout}" = 0 ]; then
  361. set timeout=10
  362. fi
  363. ### END /etc/grub.d/30_os-prober ###
  364.  
  365. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  366. ### END /etc/grub.d/30_uefi-firmware ###
  367.  
  368. ### BEGIN /etc/grub.d/40_custom ###
  369. # This file provides an easy way to add custom menu entries. Simply type the
  370. # menu entries you want to add after this comment. Be careful not to change
  371. # the 'exec tail' line above.
  372. ### END /etc/grub.d/40_custom ###
  373.  
  374. ### BEGIN /etc/grub.d/41_custom ###
  375. if [ -f ${config_directory}/custom.cfg ]; then
  376. source ${config_directory}/custom.cfg
  377. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  378. source $prefix/custom.cfg;
  379. fi
  380.  
  381. ### END /etc/grub.d/41_custom ###
RAW Paste Data