Advertisement
Guest User

grub.cfg

a guest
Dec 6th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.07 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 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='hd0,msdos6'
  68. if [ x$feature_platform_search_hint = xy ]; then
  69. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  70. else
  71. search --no-floppy --fs-uuid --set=root 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  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=it_IT
  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=menu
  90. set timeout=10
  91. # Fallback normal timeout code in case the timeout_style feature is
  92. # unavailable.
  93. else
  94. set timeout=10
  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. if background_color 44,0,30,0; then
  103. clear
  104. fi
  105. ### END /etc/grub.d/05_debian_theme ###
  106.  
  107. ### BEGIN /etc/grub.d/10_linux ###
  108. function gfxmode {
  109. set gfxpayload="${1}"
  110. if [ "${1}" = "keep" ]; then
  111. set vt_handoff=vt.handoff=7
  112. else
  113. set vt_handoff=
  114. fi
  115. }
  116. if [ "${recordfail}" != 1 ]; then
  117. if [ -e ${prefix}/gfxblacklist.txt ]; then
  118. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  119. if [ ${match} = 0 ]; then
  120. set linux_gfx_mode=keep
  121. else
  122. set linux_gfx_mode=text
  123. fi
  124. else
  125. set linux_gfx_mode=text
  126. fi
  127. else
  128. set linux_gfx_mode=keep
  129. fi
  130. else
  131. set linux_gfx_mode=text
  132. fi
  133. export linux_gfx_mode
  134. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0b201e3e-ceb2-4a00-b222-ac13cc25b75e' {
  135. recordfail
  136. load_video
  137. gfxmode $linux_gfx_mode
  138. insmod gzio
  139. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  140. insmod part_msdos
  141. insmod ext2
  142. set root='hd0,msdos6'
  143. if [ x$feature_platform_search_hint = xy ]; then
  144. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  145. else
  146. search --no-floppy --fs-uuid --set=root 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  147. fi
  148. linux /boot/vmlinuz-4.2.0-16-generic root=UUID=0b201e3e-ceb2-4a00-b222-ac13cc25b75e ro quiet splash $vt_handoff
  149. initrd /boot/initrd.img-4.2.0-16-generic
  150. }
  151. submenu 'Opzioni avanzate per Ubuntu' $menuentry_id_option 'gnulinux-advanced-0b201e3e-ceb2-4a00-b222-ac13cc25b75e' {
  152. menuentry 'Ubuntu, con Linux 4.2.0-16-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-16-generic-advanced-0b201e3e-ceb2-4a00-b222-ac13cc25b75e' {
  153. recordfail
  154. load_video
  155. gfxmode $linux_gfx_mode
  156. insmod gzio
  157. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  158. insmod part_msdos
  159. insmod ext2
  160. set root='hd0,msdos6'
  161. if [ x$feature_platform_search_hint = xy ]; then
  162. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  163. else
  164. search --no-floppy --fs-uuid --set=root 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  165. fi
  166. echo 'Caricamento Linux 4.2.0-16-generic...'
  167. linux /boot/vmlinuz-4.2.0-16-generic root=UUID=0b201e3e-ceb2-4a00-b222-ac13cc25b75e ro quiet splash $vt_handoff
  168. echo 'Caricamento ramdisk iniziale...'
  169. initrd /boot/initrd.img-4.2.0-16-generic
  170. }
  171. menuentry 'Ubuntu, with Linux 4.2.0-16-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-16-generic-init-upstart-0b201e3e-ceb2-4a00-b222-ac13cc25b75e' {
  172. recordfail
  173. load_video
  174. gfxmode $linux_gfx_mode
  175. insmod gzio
  176. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  177. insmod part_msdos
  178. insmod ext2
  179. set root='hd0,msdos6'
  180. if [ x$feature_platform_search_hint = xy ]; then
  181. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  182. else
  183. search --no-floppy --fs-uuid --set=root 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  184. fi
  185. echo 'Caricamento Linux 4.2.0-16-generic...'
  186. linux /boot/vmlinuz-4.2.0-16-generic root=UUID=0b201e3e-ceb2-4a00-b222-ac13cc25b75e ro quiet splash $vt_handoff init=/sbin/upstart
  187. echo 'Caricamento ramdisk iniziale...'
  188. initrd /boot/initrd.img-4.2.0-16-generic
  189. }
  190. menuentry 'Ubuntu, with Linux 4.2.0-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-16-generic-recovery-0b201e3e-ceb2-4a00-b222-ac13cc25b75e' {
  191. recordfail
  192. load_video
  193. insmod gzio
  194. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  195. insmod part_msdos
  196. insmod ext2
  197. set root='hd0,msdos6'
  198. if [ x$feature_platform_search_hint = xy ]; then
  199. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  200. else
  201. search --no-floppy --fs-uuid --set=root 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  202. fi
  203. echo 'Caricamento Linux 4.2.0-16-generic...'
  204. linux /boot/vmlinuz-4.2.0-16-generic root=UUID=0b201e3e-ceb2-4a00-b222-ac13cc25b75e ro recovery nomodeset
  205. echo 'Caricamento ramdisk iniziale...'
  206. initrd /boot/initrd.img-4.2.0-16-generic
  207. }
  208. }
  209.  
  210. ### END /etc/grub.d/10_linux ###
  211.  
  212. ### BEGIN /etc/grub.d/20_linux_xen ###
  213.  
  214. ### END /etc/grub.d/20_linux_xen ###
  215.  
  216. ### BEGIN /etc/grub.d/20_memtest86+ ###
  217. menuentry 'Memory test (memtest86+)' {
  218. insmod part_msdos
  219. insmod ext2
  220. set root='hd0,msdos6'
  221. if [ x$feature_platform_search_hint = xy ]; then
  222. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  223. else
  224. search --no-floppy --fs-uuid --set=root 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  225. fi
  226. knetbsd /boot/memtest86+.elf
  227. }
  228. menuentry 'Memory test (memtest86+, serial console 115200)' {
  229. insmod part_msdos
  230. insmod ext2
  231. set root='hd0,msdos6'
  232. if [ x$feature_platform_search_hint = xy ]; then
  233. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  234. else
  235. search --no-floppy --fs-uuid --set=root 0b201e3e-ceb2-4a00-b222-ac13cc25b75e
  236. fi
  237. linux16 /boot/memtest86+.bin console=ttyS0,115200n8
  238. }
  239. ### END /etc/grub.d/20_memtest86+ ###
  240.  
  241. ### BEGIN /etc/grub.d/30_os-prober ###
  242. menuentry 'Windows 10 (loader) (su /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-662AD4252AD3F053' {
  243. insmod part_msdos
  244. insmod ntfs
  245. set root='hd0,msdos1'
  246. if [ x$feature_platform_search_hint = xy ]; then
  247. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 662AD4252AD3F053
  248. else
  249. search --no-floppy --fs-uuid --set=root 662AD4252AD3F053
  250. fi
  251. parttool ${root} hidden-
  252. drivemap -s (hd0) ${root}
  253. chainloader +1
  254. }
  255. set timeout_style=menu
  256. if [ "${timeout}" = 0 ]; then
  257. set timeout=10
  258. fi
  259. ### END /etc/grub.d/30_os-prober ###
  260.  
  261. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  262. ### END /etc/grub.d/30_uefi-firmware ###
  263.  
  264. ### BEGIN /etc/grub.d/40_custom ###
  265. # This file provides an easy way to add custom menu entries. Simply type the
  266. # menu entries you want to add after this comment. Be careful not to change
  267. # the 'exec tail' line above.
  268. ### END /etc/grub.d/40_custom ###
  269.  
  270. ### BEGIN /etc/grub.d/41_custom ###
  271. if [ -f ${config_directory}/custom.cfg ]; then
  272. source ${config_directory}/custom.cfg
  273. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  274. source $prefix/custom.cfg;
  275. fi
  276. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement