spacepaste

  1.  
  2. #
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # It is automatically generated by grub-mkconfig using templates
  6. # from /etc/grub.d and settings from /etc/default/grub
  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. if [ x"${feature_menuentry_id}" = xy ]; then
  22. menuentry_id_option="--id"
  23. else
  24. menuentry_id_option=""
  25. fi
  26. export menuentry_id_option
  27. if [ "${prev_saved_entry}" ]; then
  28. set saved_entry="${prev_saved_entry}"
  29. save_env saved_entry
  30. set prev_saved_entry=
  31. save_env prev_saved_entry
  32. set boot_once=true
  33. fi
  34. function savedefault {
  35. if [ -z "${boot_once}" ]; then
  36. saved_entry="${chosen}"
  37. save_env saved_entry
  38. fi
  39. }
  40. function recordfail {
  41. set recordfail=1
  42. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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. if [ x$feature_default_font_path = xy ] ; then
  58. font=unicode
  59. else
  60. insmod part_gpt
  61. insmod ext2
  62. set root='hd0,gpt2'
  63. if [ x$feature_platform_search_hint = xy ]; then
  64. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 5c141e23-7ade-47ca-946c-eac4b7d9238d
  65. else
  66. search --no-floppy --fs-uuid --set=root 5c141e23-7ade-47ca-946c-eac4b7d9238d
  67. fi
  68. font="/usr/share/grub/unicode.pf2"
  69. fi
  70. if loadfont $font ; then
  71. set gfxmode=auto
  72. load_video
  73. insmod gfxterm
  74. set locale_dir=$prefix/locale
  75. set lang=en_AU
  76. insmod gettext
  77. fi
  78. terminal_output gfxterm
  79. insmod part_gpt
  80. insmod ext2
  81. set root='hd0,gpt3'
  82. if [ x$feature_platform_search_hint = xy ]; then
  83. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  84. else
  85. search --no-floppy --fs-uuid --set=root 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  86. fi
  87. insmod gfxmenu
  88. loadfont ($root)/grub/themes/breeze/unifont-bold-16.pf2
  89. loadfont ($root)/grub/themes/breeze/unifont-regular-14.pf2
  90. loadfont ($root)/grub/themes/breeze/unifont-regular-16.pf2
  91. loadfont ($root)/grub/themes/breeze/unifont-regular-32.pf2
  92. insmod png
  93. set theme=($root)/grub/themes/breeze/theme.txt
  94. export theme
  95. set timeout=30
  96. ### END /etc/grub.d/00_header ###
  97. ### BEGIN /etc/grub.d/05_debian_theme ###
  98. set menu_color_normal=cyan/blue
  99. set menu_color_highlight=white/blue
  100. ### END /etc/grub.d/05_debian_theme ###
  101. ### BEGIN /etc/grub.d/10_linux ###
  102. function gfxmode {
  103. set gfxpayload="${1}"
  104. if [ "${1}" = "keep" ]; then
  105. set vt_handoff=vt.handoff=1
  106. else
  107. set vt_handoff=
  108. fi
  109. }
  110. if [ "${recordfail}" != 1 ]; then
  111. if [ -e ${prefix}/gfxblacklist.txt ]; then
  112. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  113. if [ ${match} = 0 ]; then
  114. set linux_gfx_mode=keep
  115. else
  116. set linux_gfx_mode=text
  117. fi
  118. else
  119. set linux_gfx_mode=text
  120. fi
  121. else
  122. set linux_gfx_mode=keep
  123. fi
  124. else
  125. set linux_gfx_mode=text
  126. fi
  127. export linux_gfx_mode
  128. menuentry 'neon GNU/Linux' --class neon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5c141e23-7ade-47ca-946c-eac4b7d9238d' {
  129. recordfail
  130. load_video
  131. gfxmode $linux_gfx_mode
  132. insmod gzio
  133. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  134. insmod part_gpt
  135. insmod ext2
  136. set root='hd0,gpt3'
  137. if [ x$feature_platform_search_hint = xy ]; then
  138. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  139. else
  140. search --no-floppy --fs-uuid --set=root 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  141. fi
  142. linux /vmlinuz-4.15.0-45-generic root=UUID=5c141e23-7ade-47ca-946c-eac4b7d9238d ro quiet splash $vt_handoff
  143. initrd /initrd.img-4.15.0-45-generic
  144. }
  145. submenu 'Advanced options for neon GNU/Linux' $menuentry_id_option 'gnulinux-advanced-5c141e23-7ade-47ca-946c-eac4b7d9238d' {
  146. menuentry 'neon GNU/Linux, with Linux 4.15.0-45-generic' --class neon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-45-generic-advanced-5c141e23-7ade-47ca-946c-eac4b7d9238d' {
  147. recordfail
  148. load_video
  149. gfxmode $linux_gfx_mode
  150. insmod gzio
  151. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  152. insmod part_gpt
  153. insmod ext2
  154. set root='hd0,gpt3'
  155. if [ x$feature_platform_search_hint = xy ]; then
  156. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  157. else
  158. search --no-floppy --fs-uuid --set=root 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  159. fi
  160. echo 'Loading Linux 4.15.0-45-generic ...'
  161. linux /vmlinuz-4.15.0-45-generic root=UUID=5c141e23-7ade-47ca-946c-eac4b7d9238d ro quiet splash $vt_handoff
  162. echo 'Loading initial ramdisk ...'
  163. initrd /initrd.img-4.15.0-45-generic
  164. }
  165. menuentry 'neon GNU/Linux, with Linux 4.15.0-45-generic (recovery mode)' --class neon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-45-generic-recovery-5c141e23-7ade-47ca-946c-eac4b7d9238d' {
  166. recordfail
  167. load_video
  168. insmod gzio
  169. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  170. insmod part_gpt
  171. insmod ext2
  172. set root='hd0,gpt3'
  173. if [ x$feature_platform_search_hint = xy ]; then
  174. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  175. else
  176. search --no-floppy --fs-uuid --set=root 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  177. fi
  178. echo 'Loading Linux 4.15.0-45-generic ...'
  179. linux /vmlinuz-4.15.0-45-generic root=UUID=5c141e23-7ade-47ca-946c-eac4b7d9238d ro recovery nomodeset
  180. echo 'Loading initial ramdisk ...'
  181. initrd /initrd.img-4.15.0-45-generic
  182. }
  183. menuentry 'neon GNU/Linux, with Linux 4.15.0-43-generic' --class neon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-43-generic-advanced-5c141e23-7ade-47ca-946c-eac4b7d9238d' {
  184. recordfail
  185. load_video
  186. gfxmode $linux_gfx_mode
  187. insmod gzio
  188. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  189. insmod part_gpt
  190. insmod ext2
  191. set root='hd0,gpt3'
  192. if [ x$feature_platform_search_hint = xy ]; then
  193. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  194. else
  195. search --no-floppy --fs-uuid --set=root 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  196. fi
  197. echo 'Loading Linux 4.15.0-43-generic ...'
  198. linux /vmlinuz-4.15.0-43-generic root=UUID=5c141e23-7ade-47ca-946c-eac4b7d9238d ro quiet splash $vt_handoff
  199. echo 'Loading initial ramdisk ...'
  200. initrd /initrd.img-4.15.0-43-generic
  201. }
  202. menuentry 'neon GNU/Linux, with Linux 4.15.0-43-generic (recovery mode)' --class neon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-43-generic-recovery-5c141e23-7ade-47ca-946c-eac4b7d9238d' {
  203. recordfail
  204. load_video
  205. insmod gzio
  206. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  207. insmod part_gpt
  208. insmod ext2
  209. set root='hd0,gpt3'
  210. if [ x$feature_platform_search_hint = xy ]; then
  211. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  212. else
  213. search --no-floppy --fs-uuid --set=root 42f1ec56-03dd-4c0e-93bd-571c007a3d23
  214. fi
  215. echo 'Loading Linux 4.15.0-43-generic ...'
  216. linux /vmlinuz-4.15.0-43-generic root=UUID=5c141e23-7ade-47ca-946c-eac4b7d9238d ro recovery nomodeset
  217. echo 'Loading initial ramdisk ...'
  218. initrd /initrd.img-4.15.0-43-generic
  219. }
  220. }
  221. ### END /etc/grub.d/10_linux ###
  222. ### BEGIN /etc/grub.d/20_linux_xen ###
  223. ### END /etc/grub.d/20_linux_xen ###
  224. ### BEGIN /etc/grub.d/20_memtest86+ ###
  225. ### END /etc/grub.d/20_memtest86+ ###
  226. ### BEGIN /etc/grub.d/30_os-prober ###
  227. ### END /etc/grub.d/30_os-prober ###
  228. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  229. menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
  230. fwsetup
  231. }
  232. ### END /etc/grub.d/30_uefi-firmware ###
  233. ### BEGIN /etc/grub.d/40_custom ###
  234. # This file provides an easy way to add custom menu entries. Simply type the
  235. # menu entries you want to add after this comment. Be careful not to change
  236. # the 'exec tail' line above.
  237. probe -u $root --set=rootuuid
  238. set imgdevpath="/dev/disk/by-label/ISO_FILES"
  239. set ISO_PARTITION=(hd0,gpt6)
  240. set ISO_DIRECTORY=/ISO/
  241. set ISO_FILE=${ISO_DIRECTORY}archlinux.iso
  242. set ISO_STYLISED_NAME=Archlinux
  243. set BOOT_PREFIX=arch
  244. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  245. set ISO_FILE=${ISO_DIRECTORY}archlinux.iso
  246. set ISO_STYLISED_NAME=Archlinux
  247. set BOOT_PREFIX=arch
  248. loopback loop $ISO_PARTITION$ISO_FILE
  249. probe -l loop --set=isolabel
  250. linux (loop)/$BOOT_PREFIX/boot/x86_64/vmlinuz archisolabel=$isolabel img_dev=$imgdevpath img_loop=$ISO_FILE
  251. initrd (loop)/$BOOT_PREFIX/boot/x86_64/archiso.img
  252. }
  253. set ISO_FILE=${ISO_DIRECTORY}bbqlinux.iso
  254. set ISO_STYLISED_NAME=BBQLINUX
  255. set BOOT_PREFIX=bbqlinux
  256. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  257. set ISO_FILE=${ISO_DIRECTORY}bbqlinux.iso
  258. set ISO_STYLISED_NAME=BBQLINUX
  259. set BOOT_PREFIX=bbqlinux
  260. loopback loop $ISO_PARTITION$ISO_FILE
  261. probe -l loop --set=isolabel
  262. linux (loop)/$BOOT_PREFIX/boot/x86_64/vmlinuz archisolabel=$isolabel img_dev=$imgdevpath img_loop=$ISO_FILE
  263. initrd (loop)/$BOOT_PREFIX/boot/x86_64/archiso.img
  264. }
  265. set ISO_FILE=${ISO_DIRECTORY}blackarch.iso
  266. set ISO_STYLISED_NAME=Blackarch
  267. set BOOT_PREFIX=blackarch
  268. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  269. set ISO_FILE=${ISO_DIRECTORY}blackarch.iso
  270. set ISO_STYLISED_NAME=Blackarch
  271. set BOOT_PREFIX=blackarch
  272. loopback loop $ISO_PARTITION$ISO_FILE
  273. probe -l loop --set=isolabel
  274. linux (loop)/$BOOT_PREFIX/boot/x86_64/vmlinuz archisolabel=$isolabel img_dev=$imgdevpath img_loop=$ISO_FILE
  275. initrd (loop)/$BOOT_PREFIX/boot/x86_64/archiso.img
  276. }
  277. set ISO_FILE=${ISO_DIRECTORY}kubuntu.iso
  278. set ISO_STYLISED_NAME=Kubuntu (via internal grub.cfg)
  279. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  280. set ISO_FILE=${ISO_DIRECTORY}kubuntu.iso
  281. set ISO_STYLISED_NAME=Kubuntu (via internal grub.cfg)
  282. loopback loop $ISO_PARTITION$ISO_FILE
  283. probe -l loop --set=isolabel
  284. set root=(loop)
  285. configfile /boot/grub/grub.cfg
  286. }
  287. set ISO_FILE=${ISO_DIRECTORY}neon.iso
  288. set ISO_STYLISED_NAME=KDE-Neon (via internal grub.cfg)
  289. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  290. set ISO_FILE=${ISO_DIRECTORY}neon.iso
  291. set ISO_STYLISED_NAME=KDE-Neon (via internal grub.cfg)
  292. loopback loop $ISO_PARTITION$ISO_FILE
  293. probe -l loop --set=isolabel
  294. set root=(loop)
  295. configfile /boot/grub/grub.cfg
  296. }
  297. set ISO_FILE=${ISO_DIRECTORY}mini.iso
  298. set ISO_STYLISED_NAME=Mini (via internal grub.cfg)
  299. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  300. set ISO_FILE=${ISO_DIRECTORY}mini.iso
  301. set ISO_STYLISED_NAME=Mini (via internal grub.cfg)
  302. loopback loop $ISO_PARTITION$ISO_FILE
  303. probe -l loop --set=isolabel
  304. set root=(loop)
  305. configfile /boot/grub/grub.cfg
  306. }
  307. set ISO_FILE=${ISO_DIRECTORY}nixos.iso
  308. set ISO_STYLISED_NAME=NixOS
  309. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  310. set ISO_FILE=${ISO_DIRECTORY}nixos.iso
  311. set ISO_STYLISED_NAME=NixOS
  312. loopback loop $ISO_PARTITION$ISO_FILE
  313. linux (loop)/boot/bzImage
  314. initrd (loop)/boot/initrd
  315. }
  316. set ISO_FILE=${ISO_DIRECTORY}pheonixos.iso
  317. set ISO_STYLISED_NAME=Pheonix OS (via internal grub.cfg)
  318. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  319. set ISO_FILE=${ISO_DIRECTORY}pheonixos.iso
  320. set ISO_STYLISED_NAME=Pheonix OS (via internal grub.cfg)
  321. loopback loop $ISO_PARTITION$ISO_FILE
  322. probe -l loop --set=isolabel
  323. set root=(loop)
  324. configfile /efi/boot/grub.cfg
  325. }
  326. set ISO_FILE=${ISO_DIRECTORY}primeos.iso
  327. set ISO_STYLISED_NAME=Prime OS (via internal grub.cfg)
  328. menuentry "[loopback] $ISO_STYLISED_NAME ($ISO_FILE)" {
  329. set ISO_FILE=${ISO_DIRECTORY}primeos.iso
  330. set ISO_STYLISED_NAME=Prime OS (via internal grub.cfg)
  331. loopback loop $ISO_PARTITION$ISO_FILE
  332. probe -l loop --set=isolabel
  333. set root=(loop)
  334. configfile /boot/grub/grub.cfg
  335. }
  336. ### END /etc/grub.d/40_custom ###
  337. ### BEGIN /etc/grub.d/41_custom ###
  338. if [ -f ${config_directory}/custom.cfg ]; then
  339. source ${config_directory}/custom.cfg
  340. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  341. source $prefix/custom.cfg;
  342. fi
  343. ### END /etc/grub.d/41_custom ###
  344.