askb

ubuntu.v.debian.grub.conf

Mar 28th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.67 KB | None | 0 0
  1. Debia 8/Jessie: /boot/grub/grub.cfg
  2.  
  3. #
  4. # DO NOT EDIT THIS FILE
  5. #
  6. # It is automatically generated by grub-mkconfig using templates
  7. # from /etc/grub.d and settings from /etc/default/grub
  8. #
  9.  
  10. ### BEGIN /etc/grub.d/00_header ###
  11. if [ -s $prefix/grubenv ]; then
  12. set have_grubenv=true
  13. load_env
  14. fi
  15. if [ "${next_entry}" ] ; then
  16. set default="${next_entry}"
  17. set next_entry=
  18. save_env next_entry
  19. set boot_once=true
  20. else
  21. set default="0"
  22. fi
  23.  
  24. if [ x"${feature_menuentry_id}" = xy ]; then
  25. menuentry_id_option="--id"
  26. else
  27. menuentry_id_option=""
  28. fi
  29.  
  30. export menuentry_id_option
  31.  
  32. if [ "${prev_saved_entry}" ]; then
  33. set saved_entry="${prev_saved_entry}"
  34. save_env saved_entry
  35. set prev_saved_entry=
  36. save_env prev_saved_entry
  37. set boot_once=true
  38. fi
  39.  
  40. function savedefault {
  41. if [ -z "${boot_once}" ]; then
  42. saved_entry="${chosen}"
  43. save_env saved_entry
  44. fi
  45. }
  46. function load_video {
  47. if [ x$feature_all_video_module = xy ]; then
  48. insmod all_video
  49. else
  50. insmod efi_gop
  51. insmod efi_uga
  52. insmod ieee1275_fb
  53. insmod vbe
  54. insmod vga
  55. insmod video_bochs
  56. insmod video_cirrus
  57. fi
  58. }
  59.  
  60. if [ x$feature_default_font_path = xy ] ; then
  61. font=unicode
  62. else
  63. insmod part_msdos
  64. insmod lvm
  65. insmod ext2
  66. set root='lvmid/Jc5FtX-9tZy-1lXK-0qCy-W8AI-V8AE-65TL8D/GsHwWe-a8D4-1jNK-qVbL-SmmT-B4Bv-wp87wh'
  67. if [ x$feature_platform_search_hint = xy ]; then
  68. search --no-floppy --fs-uuid --set=root --hint='lvmid/Jc5FtX-9tZy-1lXK-0qCy-W8AI-V8AE-65TL8D/GsHwWe-a8D4-1jNK-qVbL-SmmT-B4Bv-wp87wh' 87666773-9b06-440c-99f0-2e489bf66a4c
  69. else
  70. search --no-floppy --fs-uuid --set=root 87666773-9b06-440c-99f0-2e489bf66a4c
  71. fi
  72. font="/usr/share/grub/unicode.pf2"
  73. fi
  74.  
  75. if loadfont $font ; then
  76. set gfxmode=auto
  77. load_video
  78. insmod gfxterm
  79. set locale_dir=$prefix/locale
  80. set lang=en_US
  81. insmod gettext
  82. fi
  83. terminal_output gfxterm
  84. if [ "${recordfail}" = 1 ] ; then
  85. set timeout=-1
  86. else
  87. if [ x$feature_timeout_style = xy ] ; then
  88. set timeout_style=menu
  89. set timeout=5
  90. # Fallback normal timeout code in case the timeout_style feature is
  91. # unavailable.
  92. else
  93. set timeout=5
  94. fi
  95. fi
  96. ### END /etc/grub.d/00_header ###
  97.  
  98. ### BEGIN /etc/grub.d/05_debian_theme ###
  99. insmod part_msdos
  100. insmod lvm
  101. insmod ext2
  102. set root='lvmid/Jc5FtX-9tZy-1lXK-0qCy-W8AI-V8AE-65TL8D/GsHwWe-a8D4-1jNK-qVbL-SmmT-B4Bv-wp87wh'
  103. if [ x$feature_platform_search_hint = xy ]; then
  104. search --no-floppy --fs-uuid --set=root --hint='lvmid/Jc5FtX-9tZy-1lXK-0qCy-W8AI-V8AE-65TL8D/GsHwWe-a8D4-1jNK-qVbL-SmmT-B4Bv-wp87wh' 87666773-9b06-440c-99f0-2e489bf66a4c
  105. else
  106. search --no-floppy --fs-uuid --set=root 87666773-9b06-440c-99f0-2e489bf66a4c
  107. fi
  108. insmod png
  109. if background_image /usr/share/images/desktop-base/lines-grub.png; then
  110. set color_normal=white/black
  111. set color_highlight=black/white
  112. else
  113. set menu_color_normal=cyan/blue
  114. set menu_color_highlight=white/blue
  115. fi
  116. ### END /etc/grub.d/05_debian_theme ###
  117.  
  118. ### BEGIN /etc/grub.d/10_linux ###
  119. function gfxmode {
  120. set gfxpayload="${1}"
  121. }
  122. set linux_gfx_mode=
  123. export linux_gfx_mode
  124. menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-87666773-9b06-440c-99f0-2e489bf66a4c' {
  125. load_video
  126. insmod gzio
  127. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  128. insmod part_msdos
  129. insmod ext2
  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 8e3d8267-09da-4be0-a0bd-2b1e7c0cba04
  133. else
  134. search --no-floppy --fs-uuid --set=root 8e3d8267-09da-4be0-a0bd-2b1e7c0cba04
  135. fi
  136. echo 'Loading Linux 3.16.0-4-amd64 ...'
  137. linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg01-root ro quiet
  138. echo 'Loading initial ramdisk ...'
  139. initrd /initrd.img-3.16.0-4-amd64
  140. }
  141. submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-87666773-9b06-440c-99f0-2e489bf66a4c' {
  142. menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-87666773-9b06-440c-99f0-2e489bf66a4c' {
  143. load_video
  144. insmod gzio
  145. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  146. insmod part_msdos
  147. insmod ext2
  148. set root='hd0,msdos1'
  149. if [ x$feature_platform_search_hint = xy ]; then
  150. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 8e3d8267-09da-4be0-a0bd-2b1e7c0cba04
  151. else
  152. search --no-floppy --fs-uuid --set=root 8e3d8267-09da-4be0-a0bd-2b1e7c0cba04
  153. fi
  154. echo 'Loading Linux 3.16.0-4-amd64 ...'
  155. linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg01-root ro quiet
  156. echo 'Loading initial ramdisk ...'
  157. initrd /initrd.img-3.16.0-4-amd64
  158. }
  159. menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-87666773-9b06-440c-99f0-2e489bf66a4c' {
  160. load_video
  161. insmod gzio
  162. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  163. insmod part_msdos
  164. insmod ext2
  165. set root='hd0,msdos1'
  166. if [ x$feature_platform_search_hint = xy ]; then
  167. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 8e3d8267-09da-4be0-a0bd-2b1e7c0cba04
  168. else
  169. search --no-floppy --fs-uuid --set=root 8e3d8267-09da-4be0-a0bd-2b1e7c0cba04
  170. fi
  171. echo 'Loading Linux 3.16.0-4-amd64 ...'
  172. linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg01-root ro single
  173. echo 'Loading initial ramdisk ...'
  174. initrd /initrd.img-3.16.0-4-amd64
  175. }
  176. }
  177.  
  178. ### END /etc/grub.d/10_linux ###
  179.  
  180. ### BEGIN /etc/grub.d/20_linux_xen ###
  181.  
  182. ### END /etc/grub.d/20_linux_xen ###
  183.  
  184. ### BEGIN /etc/grub.d/30_os-prober ###
  185. ### END /etc/grub.d/30_os-prober ###
  186.  
  187. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  188. ### END /etc/grub.d/30_uefi-firmware ###
  189.  
  190. ### BEGIN /etc/grub.d/40_custom ###
  191. # This file provides an easy way to add custom menu entries. Simply type the
  192. # menu entries you want to add after this comment. Be careful not to change
  193. # the 'exec tail' line above.
  194. ### END /etc/grub.d/40_custom ###
  195.  
  196. ### BEGIN /etc/grub.d/41_custom ###
  197. if [ -f ${config_directory}/custom.cfg ]; then
  198. source ${config_directory}/custom.cfg
  199. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  200. source $prefix/custom.cfg;
  201. fi
  202. ### END /etc/grub.d/41_custom ###
  203.  
  204. ====================================================================================
  205. Debian8(Jessie): /etc/default/grub:
  206. # If you change this file, run 'update-grub' afterwards to update
  207. # /boot/grub/grub.cfg.
  208. # For full documentation of the options in this file, see:
  209. # info -f grub -n 'Simple configuration'
  210.  
  211. GRUB_DEFAULT=0
  212. GRUB_TIMEOUT=5
  213. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  214. GRUB_CMDLINE_LINUX_DEFAULT="quiet"
  215. GRUB_CMDLINE_LINUX=""
  216.  
  217. # Uncomment to enable BadRAM filtering, modify to suit your needs
  218. # This works with Linux (no patch required) and with any kernel that obtains
  219. # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
  220. #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
  221.  
  222. # Uncomment to disable graphical terminal (grub-pc only)
  223. #GRUB_TERMINAL=console
  224.  
  225. # The resolution used on graphical terminal
  226. # note that you can use only modes which your graphic card supports via VBE
  227. # you can see them in real GRUB with the command `vbeinfo'
  228. #GRUB_GFXMODE=640x480
  229.  
  230. # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
  231. #GRUB_DISABLE_LINUX_UUID=true
  232.  
  233. # Uncomment to disable generation of recovery mode menu entries
  234. #GRUB_DISABLE_RECOVERY="true"
  235.  
  236. # Uncomment to get a beep at grub start
  237. #GRUB_INIT_TUNE="480 440 1"
  238. =============================================================================
  239. Ubuntu 14.04: /etc/default/grub
  240. # If you change this file, run 'update-grub' afterwards to update
  241. # /boot/grub/grub.cfg.
  242. # For full documentation of the options in this file, see:
  243. # info -f grub -n 'Simple configuration'
  244.  
  245. #GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 3.13.0-65-generic"
  246. GRUB_DEFAULT=0
  247. GRUB_HIDDEN_TIMEOUT=0
  248. GRUB_HIDDEN_TIMEOUT_QUIET=true
  249. GRUB_TIMEOUT=5
  250. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  251. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  252. GRUB_CMDLINE_LINUX=""
  253.  
  254. # Uncomment to enable BadRAM filtering, modify to suit your needs
  255. # This works with Linux (no patch required) and with any kernel that obtains
  256. # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
  257. #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
  258.  
  259. # Uncomment to disable graphical terminal (grub-pc only)
  260. #GRUB_TERMINAL=console
  261.  
  262. # The resolution used on graphical terminal
  263. # note that you can use only modes which your graphic card supports via VBE
  264. # you can see them in real GRUB with the command `vbeinfo'
  265. #GRUB_GFXMODE=640x480
  266.  
  267. # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
  268. #GRUB_DISABLE_LINUX_UUID=true
  269.  
  270. # Uncomment to disable generation of recovery mode menu entries
  271. #GRUB_DISABLE_RECOVERY="true"
  272.  
  273. # Uncomment to get a beep at grub start
  274. #GRUB_INIT_TUNE="480 440 1"
  275. ===============================================================================================
  276. Ubuntu 14.04:/boot/grub/grub.cfg
  277. #
  278. # DO NOT EDIT THIS FILE
  279. #
  280. # It is automatically generated by grub-mkconfig using templates
  281. # from /etc/grub.d and settings from /etc/default/grub
  282. #
  283.  
  284. ### BEGIN /etc/grub.d/00_header ###
  285. if [ -s $prefix/grubenv ]; then
  286. set have_grubenv=true
  287. load_env
  288. fi
  289. if [ "${next_entry}" ] ; then
  290. set default="${next_entry}"
  291. set next_entry=
  292. save_env next_entry
  293. set boot_once=true
  294. else
  295. set default="0"
  296. fi
  297.  
  298. if [ x"${feature_menuentry_id}" = xy ]; then
  299. menuentry_id_option="--id"
  300. else
  301. menuentry_id_option=""
  302. fi
  303.  
  304. export menuentry_id_option
  305.  
  306. if [ "${prev_saved_entry}" ]; then
  307. set saved_entry="${prev_saved_entry}"
  308. save_env saved_entry
  309. set prev_saved_entry=
  310. save_env prev_saved_entry
  311. set boot_once=true
  312. fi
  313.  
  314. function savedefault {
  315. if [ -z "${boot_once}" ]; then
  316. saved_entry="${chosen}"
  317. save_env saved_entry
  318. fi
  319. }
  320. function recordfail {
  321. set recordfail=1
  322. if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  323. }
  324. function load_video {
  325. if [ x$feature_all_video_module = xy ]; then
  326. insmod all_video
  327. else
  328. insmod efi_gop
  329. insmod efi_uga
  330. insmod ieee1275_fb
  331. insmod vbe
  332. insmod vga
  333. insmod video_bochs
  334. insmod video_cirrus
  335. fi
  336. }
  337.  
  338. if [ x$feature_default_font_path = xy ] ; then
  339. font=unicode
  340. else
  341. insmod part_msdos
  342. insmod ext2
  343. set root='hd1,msdos2'
  344. if [ x$feature_platform_search_hint = xy ]; then
  345. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 7be3bd48-774e-4ef9-aab1-69781ae2ad9f
  346. else
  347. search --no-floppy --fs-uuid --set=root 7be3bd48-774e-4ef9-aab1-69781ae2ad9f
  348. fi
  349. font="/usr/share/grub/unicode.pf2"
  350. fi
  351.  
  352. if loadfont $font ; then
  353. set gfxmode=auto
  354. load_video
  355. insmod gfxterm
  356. set locale_dir=$prefix/locale
  357. set lang=en_IN
  358. insmod gettext
  359. fi
  360. terminal_output gfxterm
  361. if [ "${recordfail}" = 1 ] ; then
  362. set timeout=30
  363. else
  364. if [ x$feature_timeout_style = xy ] ; then
  365. set timeout_style=hidden
  366. set timeout=0
  367. # Fallback hidden-timeout code in case the timeout_style feature is
  368. # unavailable.
  369. elif sleep --interruptible 0 ; then
  370. set timeout=0
  371. fi
  372. fi
  373. ### END /etc/grub.d/00_header ###
  374.  
  375. ### BEGIN /etc/grub.d/05_debian_theme ###
  376. set menu_color_normal=white/black
  377. set menu_color_highlight=black/light-gray
  378. if background_color 44,0,30,0; then
  379. clear
  380. fi
  381. ### END /etc/grub.d/05_debian_theme ###
  382.  
  383. ### BEGIN /etc/grub.d/10_linux ###
  384. function gfxmode {
  385. set gfxpayload="${1}"
  386. if [ "${1}" = "keep" ]; then
  387. set vt_handoff=vt.handoff=7
  388. else
  389. set vt_handoff=
  390. fi
  391. }
  392. if [ "${recordfail}" != 1 ]; then
  393. if [ -e ${prefix}/gfxblacklist.txt ]; then
  394. if hwmatch ${prefix}/gfxblacklist.txt 3; then
  395. if [ ${match} = 0 ]; then
  396. set linux_gfx_mode=keep
  397. else
  398. set linux_gfx_mode=text
  399. fi
  400. else
  401. set linux_gfx_mode=text
  402. fi
  403. else
  404. set linux_gfx_mode=keep
  405. fi
  406. else
  407. set linux_gfx_mode=text
  408. fi
  409. export linux_gfx_mode
  410. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7be3bd48-774e-4ef9-aab1-69781ae2ad9f' {
  411. recordfail
  412. load_video
  413. gfxmode $linux_gfx_mode
  414. insmod gzio
  415. insmod part_msdos
  416. insmod ext2
  417. set root='hd1,msdos1'
  418. if [ x$feature_platform_search_hint = xy ]; then
  419. search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 5f696848-cd15-4296-b67f-977972bbd3b6
  420. else
  421. search --no-floppy --fs-uuid --set=root 5f696848-cd15-4296-b67f-977972bbd3b6
  422. fi
  423. linux /vmlinuz-3.13.0-83-generic root=UUID=7be3bd48-774e-4ef9-aab1-69781ae2ad9f ro quiet splash $vt_handoff
  424. initrd /initrd.img-3.13.0-83-generic
  425. }
  426. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-7be3bd48-774e-4ef9-aab1-69781ae2ad9f' {
  427. menuentry 'Ubuntu, with Linux 3.13.0-83-generic' --class ubuntu --class gnu-linux --class gnu --class os
  428. ===============================================================================================
Add Comment
Please, Sign In to add comment