Advertisement
Guest User

grub.cfg

a guest
Aug 19th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.71 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 xfs
  63. set root='hd0,msdos1'
  64. if [ x$feature_platform_search_hint = xy ]; then
  65. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b222a279-3970-41d1-a631-df58a2b3fe94
  66. else
  67. search --no-floppy --fs-uuid --set=root b222a279-3970-41d1-a631-df58a2b3fe94
  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 [ "${recordfail}" = 1 ] ; then
  82. set timeout=-1
  83. else
  84. if [ x$feature_timeout_style = xy ] ; then
  85. set timeout_style=menu
  86. set timeout=5
  87. # Fallback normal timeout code in case the timeout_style feature is
  88. # unavailable.
  89. else
  90. set timeout=5
  91. fi
  92. fi
  93. ### END /etc/grub.d/00_header ###
  94.  
  95. ### BEGIN /etc/grub.d/05_debian_theme ###
  96. set menu_color_normal=cyan/blue
  97. set menu_color_highlight=white/blue
  98. ### END /etc/grub.d/05_debian_theme ###
  99.  
  100. ### BEGIN /etc/grub.d/10_linux ###
  101. function gfxmode {
  102. set gfxpayload="${1}"
  103. }
  104. set linux_gfx_mode=
  105. export linux_gfx_mode
  106. menuentry 'BunsenLabs GNU/Linux' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b222a279-3970-41d1-a631-df58a2b3fe94' {
  107. load_video
  108. insmod gzio
  109. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  110. insmod part_msdos
  111. insmod xfs
  112. set root='hd0,msdos1'
  113. if [ x$feature_platform_search_hint = xy ]; then
  114. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b222a279-3970-41d1-a631-df58a2b3fe94
  115. else
  116. search --no-floppy --fs-uuid --set=root b222a279-3970-41d1-a631-df58a2b3fe94
  117. fi
  118. echo 'Loading Linux 4.0.9 ...'
  119. linux /boot/vmlinuz-4.0.9 root=/dev/sda1 ro initrd=/install/initrd.gz rootdelay=40 quiet clocksource=hpet threadirqs intel_idle.max_cstate=0 processor.max_cstate=1 cpu_dma_latency=0 idle=poll
  120. echo 'Loading initial ramdisk ...'
  121. initrd /boot/initrd.img-4.0.9
  122. }
  123. submenu 'Advanced options for BunsenLabs GNU/Linux' $menuentry_id_option 'gnulinux-advanced-b222a279-3970-41d1-a631-df58a2b3fe94' {
  124. menuentry 'BunsenLabs GNU/Linux, with Linux 4.0.9' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.9-advanced-b222a279-3970-41d1-a631-df58a2b3fe94' {
  125. load_video
  126. insmod gzio
  127. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  128. insmod part_msdos
  129. insmod xfs
  130. set root='hd0,msdos1'
  131. if [ x$feature_platform_search_hint = xy ]; then
  132. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b222a279-3970-41d1-a631-df58a2b3fe94
  133. else
  134. search --no-floppy --fs-uuid --set=root b222a279-3970-41d1-a631-df58a2b3fe94
  135. fi
  136. echo 'Loading Linux 4.0.9 ...'
  137. linux /boot/vmlinuz-4.0.9 root=/dev/sda1 ro initrd=/install/initrd.gz rootdelay=40 quiet clocksource=hpet threadirqs intel_idle.max_cstate=0 processor.max_cstate=1 cpu_dma_latency=0 idle=poll
  138. echo 'Loading initial ramdisk ...'
  139. initrd /boot/initrd.img-4.0.9
  140. }
  141. menuentry 'BunsenLabs GNU/Linux, with Linux 4.0.9 (recovery mode)' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.9-recovery-b222a279-3970-41d1-a631-df58a2b3fe94' {
  142. load_video
  143. insmod gzio
  144. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  145. insmod part_msdos
  146. insmod xfs
  147. set root='hd0,msdos1'
  148. if [ x$feature_platform_search_hint = xy ]; then
  149. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b222a279-3970-41d1-a631-df58a2b3fe94
  150. else
  151. search --no-floppy --fs-uuid --set=root b222a279-3970-41d1-a631-df58a2b3fe94
  152. fi
  153. echo 'Loading Linux 4.0.9 ...'
  154. linux /boot/vmlinuz-4.0.9 root=/dev/sda1 ro single initrd=/install/initrd.gz
  155. echo 'Loading initial ramdisk ...'
  156. initrd /boot/initrd.img-4.0.9
  157. }
  158. menuentry 'BunsenLabs GNU/Linux, with Linux 3.16.0-4-686-pae' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-686-pae-advanced-b222a279-3970-41d1-a631-df58a2b3fe94' {
  159. load_video
  160. insmod gzio
  161. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  162. insmod part_msdos
  163. insmod xfs
  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 b222a279-3970-41d1-a631-df58a2b3fe94
  167. else
  168. search --no-floppy --fs-uuid --set=root b222a279-3970-41d1-a631-df58a2b3fe94
  169. fi
  170. echo 'Loading Linux 3.16.0-4-686-pae ...'
  171. linux /boot/vmlinuz-3.16.0-4-686-pae root=/dev/sda1 ro initrd=/install/initrd.gz rootdelay=40 quiet clocksource=hpet threadirqs intel_idle.max_cstate=0 processor.max_cstate=1 cpu_dma_latency=0 idle=poll
  172. echo 'Loading initial ramdisk ...'
  173. initrd /boot/initrd.img-3.16.0-4-686-pae
  174. }
  175. menuentry 'BunsenLabs GNU/Linux, with Linux 3.16.0-4-686-pae (recovery mode)' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-686-pae-recovery-b222a279-3970-41d1-a631-df58a2b3fe94' {
  176. load_video
  177. insmod gzio
  178. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  179. insmod part_msdos
  180. insmod xfs
  181. set root='hd0,msdos1'
  182. if [ x$feature_platform_search_hint = xy ]; then
  183. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b222a279-3970-41d1-a631-df58a2b3fe94
  184. else
  185. search --no-floppy --fs-uuid --set=root b222a279-3970-41d1-a631-df58a2b3fe94
  186. fi
  187. echo 'Loading Linux 3.16.0-4-686-pae ...'
  188. linux /boot/vmlinuz-3.16.0-4-686-pae root=/dev/sda1 ro single initrd=/install/initrd.gz
  189. echo 'Loading initial ramdisk ...'
  190. initrd /boot/initrd.img-3.16.0-4-686-pae
  191. }
  192. menuentry 'BunsenLabs GNU/Linux, with Linux 3.16.0-4-586' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-advanced-b222a279-3970-41d1-a631-df58a2b3fe94' {
  193. load_video
  194. insmod gzio
  195. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  196. insmod part_msdos
  197. insmod xfs
  198. set root='hd0,msdos1'
  199. if [ x$feature_platform_search_hint = xy ]; then
  200. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b222a279-3970-41d1-a631-df58a2b3fe94
  201. else
  202. search --no-floppy --fs-uuid --set=root b222a279-3970-41d1-a631-df58a2b3fe94
  203. fi
  204. echo 'Loading Linux 3.16.0-4-586 ...'
  205. linux /boot/vmlinuz-3.16.0-4-586 root=/dev/sda1 ro initrd=/install/initrd.gz rootdelay=40 quiet clocksource=hpet threadirqs intel_idle.max_cstate=0 processor.max_cstate=1 cpu_dma_latency=0 idle=poll
  206. echo 'Loading initial ramdisk ...'
  207. initrd /boot/initrd.img-3.16.0-4-586
  208. }
  209. menuentry 'BunsenLabs GNU/Linux, with Linux 3.16.0-4-586 (recovery mode)' --class bunsenlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-recovery-b222a279-3970-41d1-a631-df58a2b3fe94' {
  210. load_video
  211. insmod gzio
  212. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  213. insmod part_msdos
  214. insmod xfs
  215. set root='hd0,msdos1'
  216. if [ x$feature_platform_search_hint = xy ]; then
  217. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b222a279-3970-41d1-a631-df58a2b3fe94
  218. else
  219. search --no-floppy --fs-uuid --set=root b222a279-3970-41d1-a631-df58a2b3fe94
  220. fi
  221. echo 'Loading Linux 3.16.0-4-586 ...'
  222. linux /boot/vmlinuz-3.16.0-4-586 root=/dev/sda1 ro single initrd=/install/initrd.gz
  223. echo 'Loading initial ramdisk ...'
  224. initrd /boot/initrd.img-3.16.0-4-586
  225. }
  226. }
  227.  
  228. ### END /etc/grub.d/10_linux ###
  229.  
  230. ### BEGIN /etc/grub.d/20_linux_xen ###
  231.  
  232. ### END /etc/grub.d/20_linux_xen ###
  233.  
  234. ### BEGIN /etc/grub.d/30_os-prober ###
  235. ### END /etc/grub.d/30_os-prober ###
  236.  
  237. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  238. ### END /etc/grub.d/30_uefi-firmware ###
  239.  
  240. ### BEGIN /etc/grub.d/40_custom ###
  241. # This file provides an easy way to add custom menu entries. Simply type the
  242. # menu entries you want to add after this comment. Be careful not to change
  243. # the 'exec tail' line above.
  244. ### END /etc/grub.d/40_custom ###
  245.  
  246. ### BEGIN /etc/grub.d/41_custom ###
  247. if [ -f ${config_directory}/custom.cfg ]; then
  248. source ${config_directory}/custom.cfg
  249. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  250. source $prefix/custom.cfg;
  251. fi
  252. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement