Advertisement
Guest User

Untitled

a guest
Jul 9th, 2019
90
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 [ "${initrdfail}" = 2 ]; then
  14. set initrdfail=
  15. elif [ "${initrdfail}" = 1 ]; then
  16. set next_entry="${prev_entry}"
  17. set prev_entry=
  18. save_env prev_entry
  19. if [ "${next_entry}" ]; then
  20. set initrdfail=2
  21. fi
  22. fi
  23. if [ "${next_entry}" ] ; then
  24. set default="${next_entry}"
  25. set next_entry=
  26. save_env next_entry
  27. set boot_once=true
  28. else
  29. set default="0"
  30. fi
  31.  
  32. if [ x"${feature_menuentry_id}" = xy ]; then
  33. menuentry_id_option="--id"
  34. else
  35. menuentry_id_option=""
  36. fi
  37.  
  38. export menuentry_id_option
  39.  
  40. if [ "${prev_saved_entry}" ]; then
  41. set saved_entry="${prev_saved_entry}"
  42. save_env saved_entry
  43. set prev_saved_entry=
  44. save_env prev_saved_entry
  45. set boot_once=true
  46. fi
  47.  
  48. function savedefault {
  49. if [ -z "${boot_once}" ]; then
  50. saved_entry="${chosen}"
  51. save_env saved_entry
  52. fi
  53. }
  54. function initrdfail {
  55. if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
  56. if [ -z "${initrdfail}" ]; then
  57. set initrdfail=1
  58. if [ -n "${boot_once}" ]; then
  59. set prev_entry="${default}"
  60. save_env prev_entry
  61. fi
  62. fi
  63. save_env initrdfail
  64. fi; fi
  65. }
  66. function recordfail {
  67. set recordfail=1
  68. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  69. }
  70. function load_video {
  71. if [ x$feature_all_video_module = xy ]; then
  72. insmod all_video
  73. else
  74. insmod efi_gop
  75. insmod efi_uga
  76. insmod ieee1275_fb
  77. insmod vbe
  78. insmod vga
  79. insmod video_bochs
  80. insmod video_cirrus
  81. fi
  82. }
  83.  
  84. if [ x$feature_default_font_path = xy ] ; then
  85. font=unicode
  86. else
  87. insmod part_msdos
  88. insmod ext2
  89. set root='hd0,msdos1'
  90. if [ x$feature_platform_search_hint = xy ]; then
  91. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  92. else
  93. search --no-floppy --fs-uuid --set=root ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  94. fi
  95. font="/usr/share/grub/unicode.pf2"
  96. fi
  97.  
  98. if loadfont $font ; then
  99. set gfxmode=auto
  100. load_video
  101. insmod gfxterm
  102. set locale_dir=$prefix/locale
  103. set lang=en_US
  104. insmod gettext
  105. fi
  106. terminal_output gfxterm
  107. if [ "${recordfail}" = 1 ] ; then
  108. set timeout=30
  109. else
  110. if [ x$feature_timeout_style = xy ] ; then
  111. set timeout_style=menu
  112. set timeout=10
  113. # Fallback normal timeout code in case the timeout_style feature is
  114. # unavailable.
  115. else
  116. set timeout=10
  117. fi
  118. fi
  119. ### END /etc/grub.d/00_header ###
  120.  
  121. ### BEGIN /etc/grub.d/05_debian_theme ###
  122. set menu_color_normal=white/black
  123. set menu_color_highlight=black/light-gray
  124. if background_color 44,0,30,0; then
  125. clear
  126. fi
  127. ### END /etc/grub.d/05_debian_theme ###
  128.  
  129. ### BEGIN /etc/grub.d/10_linux ###
  130. function gfxmode {
  131. set gfxpayload="${1}"
  132. if [ "${1}" = "keep" ]; then
  133. set vt_handoff=vt.handoff=1
  134. else
  135. set vt_handoff=
  136. fi
  137. }
  138. if [ "${recordfail}" != 1 ]; then
  139. if [ -e ${prefix}/gfxblacklist.txt ]; then
  140. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  141. if [ ${match} = 0 ]; then
  142. set linux_gfx_mode=keep
  143. else
  144. set linux_gfx_mode=text
  145. fi
  146. else
  147. set linux_gfx_mode=text
  148. fi
  149. else
  150. set linux_gfx_mode=keep
  151. fi
  152. else
  153. set linux_gfx_mode=text
  154. fi
  155. export linux_gfx_mode
  156. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9' {
  157. recordfail
  158. load_video
  159. gfxmode $linux_gfx_mode
  160. insmod gzio
  161. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  162. insmod part_msdos
  163. insmod ext2
  164. set root='hd0,msdos1'
  165. if [ x$feature_platform_search_hint = xy ]; then
  166. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  167. else
  168. search --no-floppy --fs-uuid --set=root ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  169. fi
  170. linux /boot/vmlinuz-5.0.0-16-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro quiet splash acpi=force $vt_handoff
  171. initrd /boot/initrd.img-5.0.0-16-generic
  172. }
  173. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9' {
  174. menuentry 'Ubuntu, with Linux 5.0.0-16-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-16-generic-advanced-ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9' {
  175. recordfail
  176. load_video
  177. gfxmode $linux_gfx_mode
  178. insmod gzio
  179. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  180. insmod part_msdos
  181. insmod ext2
  182. set root='hd0,msdos1'
  183. if [ x$feature_platform_search_hint = xy ]; then
  184. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  185. else
  186. search --no-floppy --fs-uuid --set=root ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  187. fi
  188. echo 'Loading Linux 5.0.0-16-generic ...'
  189. linux /boot/vmlinuz-5.0.0-16-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro quiet splash acpi=force $vt_handoff
  190. echo 'Loading initial ramdisk ...'
  191. initrd /boot/initrd.img-5.0.0-16-generic
  192. }
  193. menuentry 'Ubuntu, with Linux 5.0.0-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-16-generic-recovery-ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9' {
  194. recordfail
  195. load_video
  196. insmod gzio
  197. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  198. insmod part_msdos
  199. insmod ext2
  200. set root='hd0,msdos1'
  201. if [ x$feature_platform_search_hint = xy ]; then
  202. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  203. else
  204. search --no-floppy --fs-uuid --set=root ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  205. fi
  206. echo 'Loading Linux 5.0.0-16-generic ...'
  207. linux /boot/vmlinuz-5.0.0-16-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro recovery nomodeset
  208. echo 'Loading initial ramdisk ...'
  209. initrd /boot/initrd.img-5.0.0-16-generic
  210. }
  211. menuentry 'Ubuntu, with Linux 5.0.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-15-generic-advanced-ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9' {
  212. recordfail
  213. load_video
  214. gfxmode $linux_gfx_mode
  215. insmod gzio
  216. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  217. insmod part_msdos
  218. insmod ext2
  219. set root='hd0,msdos1'
  220. if [ x$feature_platform_search_hint = xy ]; then
  221. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  222. else
  223. search --no-floppy --fs-uuid --set=root ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  224. fi
  225. echo 'Loading Linux 5.0.0-15-generic ...'
  226. linux /boot/vmlinuz-5.0.0-15-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro quiet splash acpi=force $vt_handoff
  227. echo 'Loading initial ramdisk ...'
  228. initrd /boot/initrd.img-5.0.0-15-generic
  229. }
  230. menuentry 'Ubuntu, with Linux 5.0.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-15-generic-recovery-ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9' {
  231. recordfail
  232. load_video
  233. insmod gzio
  234. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  235. insmod part_msdos
  236. insmod ext2
  237. set root='hd0,msdos1'
  238. if [ x$feature_platform_search_hint = xy ]; then
  239. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  240. else
  241. search --no-floppy --fs-uuid --set=root ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  242. fi
  243. echo 'Loading Linux 5.0.0-15-generic ...'
  244. linux /boot/vmlinuz-5.0.0-15-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro recovery nomodeset
  245. echo 'Loading initial ramdisk ...'
  246. initrd /boot/initrd.img-5.0.0-15-generic
  247. }
  248. }
  249.  
  250. ### END /etc/grub.d/10_linux ###
  251.  
  252. ### BEGIN /etc/grub.d/20_linux_xen ###
  253.  
  254. ### END /etc/grub.d/20_linux_xen ###
  255.  
  256. ### BEGIN /etc/grub.d/20_memtest86+ ###
  257. menuentry 'Memory test (memtest86+)' {
  258. insmod part_msdos
  259. insmod ext2
  260. set root='hd0,msdos1'
  261. if [ x$feature_platform_search_hint = xy ]; then
  262. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  263. else
  264. search --no-floppy --fs-uuid --set=root ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  265. fi
  266. knetbsd /boot/memtest86+.elf
  267. }
  268. menuentry 'Memory test (memtest86+, serial console 115200)' {
  269. insmod part_msdos
  270. insmod ext2
  271. set root='hd0,msdos1'
  272. if [ x$feature_platform_search_hint = xy ]; then
  273. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  274. else
  275. search --no-floppy --fs-uuid --set=root ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9
  276. fi
  277. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  278. }
  279. ### END /etc/grub.d/20_memtest86+ ###
  280.  
  281. ### BEGIN /etc/grub.d/30_os-prober ###
  282. menuentry 'Ubuntu 19.04 (19.04) (on /dev/sdb1)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-12e719d8-f2d9-46ab-a3a5-dea65c9df3a6' {
  283. insmod part_msdos
  284. insmod ext2
  285. set root='hd1,msdos1'
  286. if [ x$feature_platform_search_hint = xy ]; then
  287. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  288. else
  289. search --no-floppy --fs-uuid --set=root 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  290. fi
  291. linux /boot/vmlinuz-5.0.0-16-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro quiet splash acpi=force $vt_handoff
  292. initrd /boot/initrd.img-5.0.0-16-generic
  293. }
  294. submenu 'Advanced options for Ubuntu 19.04 (19.04) (on /dev/sdb1)' $menuentry_id_option 'osprober-gnulinux-advanced-12e719d8-f2d9-46ab-a3a5-dea65c9df3a6' {
  295. menuentry 'Ubuntu (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-16-generic--12e719d8-f2d9-46ab-a3a5-dea65c9df3a6' {
  296. insmod part_msdos
  297. insmod ext2
  298. set root='hd1,msdos1'
  299. if [ x$feature_platform_search_hint = xy ]; then
  300. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  301. else
  302. search --no-floppy --fs-uuid --set=root 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  303. fi
  304. linux /boot/vmlinuz-5.0.0-16-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro quiet splash acpi=force $vt_handoff
  305. initrd /boot/initrd.img-5.0.0-16-generic
  306. }
  307. menuentry 'Ubuntu, with Linux 5.0.0-16-generic (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-16-generic--12e719d8-f2d9-46ab-a3a5-dea65c9df3a6' {
  308. insmod part_msdos
  309. insmod ext2
  310. set root='hd1,msdos1'
  311. if [ x$feature_platform_search_hint = xy ]; then
  312. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  313. else
  314. search --no-floppy --fs-uuid --set=root 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  315. fi
  316. linux /boot/vmlinuz-5.0.0-16-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro quiet splash acpi=force $vt_handoff
  317. initrd /boot/initrd.img-5.0.0-16-generic
  318. }
  319. menuentry 'Ubuntu, with Linux 5.0.0-16-generic (recovery mode) (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-16-generic-root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro recovery nomodeset-12e719d8-f2d9-46ab-a3a5-dea65c9df3a6' {
  320. insmod part_msdos
  321. insmod ext2
  322. set root='hd1,msdos1'
  323. if [ x$feature_platform_search_hint = xy ]; then
  324. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  325. else
  326. search --no-floppy --fs-uuid --set=root 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  327. fi
  328. linux /boot/vmlinuz-5.0.0-16-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro recovery nomodeset
  329. initrd /boot/initrd.img-5.0.0-16-generic
  330. }
  331. menuentry 'Ubuntu, with Linux 5.0.0-15-generic (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-15-generic--12e719d8-f2d9-46ab-a3a5-dea65c9df3a6' {
  332. insmod part_msdos
  333. insmod ext2
  334. set root='hd1,msdos1'
  335. if [ x$feature_platform_search_hint = xy ]; then
  336. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  337. else
  338. search --no-floppy --fs-uuid --set=root 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  339. fi
  340. linux /boot/vmlinuz-5.0.0-15-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro quiet splash acpi=force $vt_handoff
  341. initrd /boot/initrd.img-5.0.0-15-generic
  342. }
  343. menuentry 'Ubuntu, with Linux 5.0.0-15-generic (recovery mode) (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-15-generic-root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro recovery nomodeset-12e719d8-f2d9-46ab-a3a5-dea65c9df3a6' {
  344. insmod part_msdos
  345. insmod ext2
  346. set root='hd1,msdos1'
  347. if [ x$feature_platform_search_hint = xy ]; then
  348. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  349. else
  350. search --no-floppy --fs-uuid --set=root 12e719d8-f2d9-46ab-a3a5-dea65c9df3a6
  351. fi
  352. linux /boot/vmlinuz-5.0.0-15-generic root=UUID=ed4173ee-0fb1-4c3c-a0d4-e4cf91d1afd9 ro recovery nomodeset
  353. initrd /boot/initrd.img-5.0.0-15-generic
  354. }
  355. }
  356.  
  357. set timeout_style=menu
  358. if [ "${timeout}" = 0 ]; then
  359. set timeout=10
  360. fi
  361. ### END /etc/grub.d/30_os-prober ###
  362.  
  363. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  364. ### END /etc/grub.d/30_uefi-firmware ###
  365.  
  366. ### BEGIN /etc/grub.d/40_custom ###
  367. # This file provides an easy way to add custom menu entries. Simply type the
  368. # menu entries you want to add after this comment. Be careful not to change
  369. # the 'exec tail' line above.
  370. ### END /etc/grub.d/40_custom ###
  371.  
  372. ### BEGIN /etc/grub.d/41_custom ###
  373. if [ -f ${config_directory}/custom.cfg ]; then
  374. source ${config_directory}/custom.cfg
  375. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  376. source $prefix/custom.cfg;
  377. fi
  378. ### END /etc/grub.d/41_custom ###
Advertisement
RAW Paste Data Copied
Advertisement