Advertisement
timcowchip

alpine grub

Jul 18th, 2019
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.53 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. load_env
  11. fi
  12. if [ "${next_entry}" ] ; then
  13. set default="${next_entry}"
  14. set next_entry=
  15. save_env next_entry
  16. set boot_once=true
  17. else
  18. set default="${saved_entry}"
  19. fi
  20.  
  21. if [ x"${feature_menuentry_id}" = xy ]; then
  22. menuentry_id_option="--id"
  23. else
  24. menuentry_id_option=""
  25. fi
  26.  
  27. export menuentry_id_option
  28.  
  29. if [ "${prev_saved_entry}" ]; then
  30. set saved_entry="${prev_saved_entry}"
  31. save_env saved_entry
  32. set prev_saved_entry=
  33. save_env prev_saved_entry
  34. set boot_once=true
  35. fi
  36.  
  37. function savedefault {
  38. if [ -z "${boot_once}" ]; then
  39. saved_entry="${chosen}"
  40. save_env saved_entry
  41. fi
  42. }
  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_gpt
  62. insmod ext2
  63. set root='hd0,gpt2'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2a207284-7ae5-4642-a306-a6c25f402a6e
  66. else
  67. search --no-floppy --fs-uuid --set=root 2a207284-7ae5-4642-a306-a6c25f402a6e
  68. fi
  69. font="/usr/share/grub/unicode.pf2"
  70. fi
  71.  
  72. if loadfont $font ; then
  73. set gfxmode=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. if [ x$feature_timeout_style = xy ] ; then
  82. set timeout_style=menu
  83. set timeout=5
  84. # Fallback normal timeout code in case the timeout_style feature is
  85. # unavailable.
  86. else
  87. set timeout=5
  88. fi
  89. ### END /etc/grub.d/00_header ###
  90.  
  91. ### BEGIN /etc/grub.d/10_linux ###
  92. menuentry 'Void GNU/Linux' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2a207284-7ae5-4642-a306-a6c25f402a6e' {
  93. savedefault
  94. load_video
  95. set gfxpayload=keep
  96. insmod gzio
  97. insmod part_gpt
  98. insmod ext2
  99. set root='hd0,gpt2'
  100. if [ x$feature_platform_search_hint = xy ]; then
  101. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2a207284-7ae5-4642-a306-a6c25f402a6e
  102. else
  103. search --no-floppy --fs-uuid --set=root 2a207284-7ae5-4642-a306-a6c25f402a6e
  104. fi
  105. echo 'Loading Linux 4.19.60_1 ...'
  106. linux /boot/vmlinuz-4.19.60_1 root=UUID=2a207284-7ae5-4642-a306-a6c25f402a6e ro loglevel=4 slub_debug=P page_poison=1 acpi_enforce_resources=lax
  107. echo 'Loading initial ramdisk ...'
  108. initrd /boot/initramfs-4.19.60_1.img
  109. }
  110. submenu 'Advanced options for Void GNU/Linux' $menuentry_id_option 'gnulinux-advanced-2a207284-7ae5-4642-a306-a6c25f402a6e' {
  111. menuentry 'Void GNU/Linux, with Linux 4.19.60_1' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.60_1-advanced-2a207284-7ae5-4642-a306-a6c25f402a6e' {
  112. savedefault
  113. load_video
  114. set gfxpayload=keep
  115. insmod gzio
  116. insmod part_gpt
  117. insmod ext2
  118. set root='hd0,gpt2'
  119. if [ x$feature_platform_search_hint = xy ]; then
  120. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2a207284-7ae5-4642-a306-a6c25f402a6e
  121. else
  122. search --no-floppy --fs-uuid --set=root 2a207284-7ae5-4642-a306-a6c25f402a6e
  123. fi
  124. echo 'Loading Linux 4.19.60_1 ...'
  125. linux /boot/vmlinuz-4.19.60_1 root=UUID=2a207284-7ae5-4642-a306-a6c25f402a6e ro loglevel=4 slub_debug=P page_poison=1
  126. echo 'Loading initial ramdisk ...'
  127. initrd /boot/initramfs-4.19.60_1.img
  128. }
  129. menuentry 'Void GNU/Linux, with Linux 4.19.60_1 (recovery mode)' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.60_1-recovery-2a207284-7ae5-4642-a306-a6c25f402a6e' {
  130. load_video
  131. set gfxpayload=keep
  132. insmod gzio
  133. insmod part_gpt
  134. insmod ext2
  135. set root='hd0,gpt2'
  136. if [ x$feature_platform_search_hint = xy ]; then
  137. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2a207284-7ae5-4642-a306-a6c25f402a6e
  138. else
  139. search --no-floppy --fs-uuid --set=root 2a207284-7ae5-4642-a306-a6c25f402a6e
  140. fi
  141. echo 'Loading Linux 4.19.60_1 ...'
  142. linux /boot/vmlinuz-4.19.60_1 root=UUID=2a207284-7ae5-4642-a306-a6c25f402a6e ro single
  143. echo 'Loading initial ramdisk ...'
  144. initrd /boot/initramfs-4.19.60_1.img
  145. }
  146. menuentry 'Void GNU/Linux, with Linux 4.18.17_1' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.17_1-advanced-2a207284-7ae5-4642-a306-a6c25f402a6e' {
  147. savedefault
  148. load_video
  149. set gfxpayload=keep
  150. insmod gzio
  151. insmod part_gpt
  152. insmod ext2
  153. set root='hd0,gpt2'
  154. if [ x$feature_platform_search_hint = xy ]; then
  155. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2a207284-7ae5-4642-a306-a6c25f402a6e
  156. else
  157. search --no-floppy --fs-uuid --set=root 2a207284-7ae5-4642-a306-a6c25f402a6e
  158. fi
  159. echo 'Loading Linux 4.18.17_1 ...'
  160. linux /boot/vmlinuz-4.18.17_1 root=UUID=2a207284-7ae5-4642-a306-a6c25f402a6e ro loglevel=4 slub_debug=P page_poison=1
  161. echo 'Loading initial ramdisk ...'
  162. initrd /boot/initramfs-4.18.17_1.img
  163. }
  164. menuentry 'Void GNU/Linux, with Linux 4.18.17_1 (recovery mode)' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.17_1-recovery-2a207284-7ae5-4642-a306-a6c25f402a6e' {
  165. load_video
  166. set gfxpayload=keep
  167. insmod gzio
  168. insmod part_gpt
  169. insmod ext2
  170. set root='hd0,gpt2'
  171. if [ x$feature_platform_search_hint = xy ]; then
  172. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2a207284-7ae5-4642-a306-a6c25f402a6e
  173. else
  174. search --no-floppy --fs-uuid --set=root 2a207284-7ae5-4642-a306-a6c25f402a6e
  175. fi
  176. echo 'Loading Linux 4.18.17_1 ...'
  177. linux /boot/vmlinuz-4.18.17_1 root=UUID=2a207284-7ae5-4642-a306-a6c25f402a6e ro single
  178. echo 'Loading initial ramdisk ...'
  179. initrd /boot/initramfs-4.18.17_1.img
  180. }
  181. }
  182.  
  183. ### END /etc/grub.d/10_linux ###
  184.  
  185. ### BEGIN /etc/grub.d/20_linux_xen ###
  186.  
  187. ### END /etc/grub.d/20_linux_xen ###
  188.  
  189. ### BEGIN /etc/grub.d/30_os-prober ###
  190. menuentry 'Alpine Linux v3.10 (on /dev/sda3)' --class alpine --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-dfdb1a7e-4469-4599-a402-dad4e05afc81' {
  191. savedefault
  192. insmod part_gpt
  193. insmod ext2
  194. set root='hd0,gpt3'
  195. if [ x$feature_platform_search_hint = xy ]; then
  196. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 dfdb1a7e-4469-4599-a402-dad4e05afc81
  197. else
  198. search --no-floppy --fs-uuid --set=root dfdb1a7e-4469-4599-a402-dad4e05afc81
  199. fi
  200. linux /boot/vmlinuz-vanilla root=/dev/sda3 modules=sd-mod,usb-storage,ext4 nomodeset quiet rootfstype=ext4 acpi_enforce_resources=lax
  201. initrd /boot/initramfs-vanilla
  202. }
  203. submenu 'Advanced options for Alpine Linux v3.10 (on /dev/sda3)' $menuentry_id_option 'osprober-gnulinux-advanced-dfdb1a7e-4469-4599-a402-dad4e05afc81' {
  204. menuentry 'Alpine Linux v3.10 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-vanilla--dfdb1a7e-4469-4599-a402-dad4e05afc81' {
  205. savedefault
  206. insmod part_gpt
  207. insmod ext2
  208. set root='hd0,gpt3'
  209. if [ x$feature_platform_search_hint = xy ]; then
  210. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 dfdb1a7e-4469-4599-a402-dad4e05afc81
  211. else
  212. search --no-floppy --fs-uuid --set=root dfdb1a7e-4469-4599-a402-dad4e05afc81
  213. fi
  214. linux /boot/vmlinuz-vanilla root=/dev/sda3 modules=sd-mod,usb-storage,ext4 nomodeset quiet rootfstype=ext4 acpi_enforce_resources=lax
  215. initrd /boot/initramfs-vanilla
  216. }
  217. }
  218.  
  219. ### END /etc/grub.d/30_os-prober ###
  220.  
  221. ### BEGIN /etc/grub.d/40_custom ###
  222. # This file provides an easy way to add custom menu entries. Simply type the
  223. # menu entries you want to add after this comment. Be careful not to change
  224. # the 'exec tail' line above.
  225. ### END /etc/grub.d/40_custom ###
  226.  
  227. ### BEGIN /etc/grub.d/41_custom ###
  228. if [ -f ${config_directory}/custom.cfg ]; then
  229. source ${config_directory}/custom.cfg
  230. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  231. source $prefix/custom.cfg;
  232. fi
  233. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement