Advertisement
Guest User

Untitled

a guest
Nov 1st, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.26 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. insmod part_gpt
  10. insmod part_msdos
  11. if [ -s $prefix/grubenv ]; then
  12.   load_env
  13. fi
  14. if [ "${next_entry}" ] ; then
  15.    set default="${next_entry}"
  16.    set next_entry=
  17.    save_env next_entry
  18.    set boot_once=true
  19. else
  20.    set default="0"
  21. fi
  22.  
  23. if [ x"${feature_menuentry_id}" = xy ]; then
  24.   menuentry_id_option="--id"
  25. else
  26.   menuentry_id_option=""
  27. fi
  28.  
  29. export menuentry_id_option
  30.  
  31. if [ "${prev_saved_entry}" ]; then
  32.   set saved_entry="${prev_saved_entry}"
  33.   save_env saved_entry
  34.   set prev_saved_entry=
  35.   save_env prev_saved_entry
  36.   set boot_once=true
  37. fi
  38.  
  39. function savedefault {
  40.   if [ -z "${boot_once}" ]; then
  41.     saved_entry="${chosen}"
  42.     save_env saved_entry
  43.   fi
  44. }
  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_gpt
  64. insmod ext2
  65. set root='hd0,gpt3'
  66. if [ x$feature_platform_search_hint = xy ]; then
  67.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  ff637c2e-1e42-4533-9a12-6ac2f6d43c9b
  68. else
  69.   search --no-floppy --fs-uuid --set=root ff637c2e-1e42-4533-9a12-6ac2f6d43c9b
  70. fi
  71.     font="/usr/share/grub/unicode.pf2"
  72. fi
  73.  
  74. if loadfont $font ; then
  75.   set gfxmode=1024x768
  76.   load_video
  77.   insmod gfxterm
  78.   set locale_dir=$prefix/locale
  79.   set lang=en_US
  80.   insmod gettext
  81. fi
  82. terminal_input console
  83. terminal_output gfxterm
  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. ### END /etc/grub.d/00_header ###
  93.  
  94. ### BEGIN /etc/grub.d/10_linux ###
  95. menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ff637c2e-1e42-4533-9a12-6ac2f6d43c9b' {
  96.     load_video
  97.     set gfxpayload=keep
  98.     insmod gzio
  99.     insmod part_gpt
  100.     insmod fat
  101.     set root='hd0,gpt1'
  102.     if [ x$feature_platform_search_hint = xy ]; then
  103.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  BE35-0EC9
  104.     else
  105.       search --no-floppy --fs-uuid --set=root BE35-0EC9
  106.     fi
  107.     echo    'Loading Linux linux ...'
  108.     linux   /vmlinuz-linux root=UUID=ff637c2e-1e42-4533-9a12-6ac2f6d43c9b rw  
  109.     echo    'Loading initial ramdisk ...'
  110.     initrd  /intel-ucode.img /initramfs-linux.img
  111. }
  112. submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-ff637c2e-1e42-4533-9a12-6ac2f6d43c9b' {
  113.     menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-ff637c2e-1e42-4533-9a12-6ac2f6d43c9b' {
  114.         load_video
  115.         set gfxpayload=keep
  116.         insmod gzio
  117.         insmod part_gpt
  118.         insmod fat
  119.         set root='hd0,gpt1'
  120.         if [ x$feature_platform_search_hint = xy ]; then
  121.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  BE35-0EC9
  122.         else
  123.           search --no-floppy --fs-uuid --set=root BE35-0EC9
  124.         fi
  125.         echo    'Loading Linux linux ...'
  126.         linux   /vmlinuz-linux root=UUID=ff637c2e-1e42-4533-9a12-6ac2f6d43c9b rw  
  127.         echo    'Loading initial ramdisk ...'
  128.         initrd  /intel-ucode.img /initramfs-linux.img
  129.     }
  130.     menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-ff637c2e-1e42-4533-9a12-6ac2f6d43c9b' {
  131.         load_video
  132.         set gfxpayload=keep
  133.         insmod gzio
  134.         insmod part_gpt
  135.         insmod fat
  136.         set root='hd0,gpt1'
  137.         if [ x$feature_platform_search_hint = xy ]; then
  138.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  BE35-0EC9
  139.         else
  140.           search --no-floppy --fs-uuid --set=root BE35-0EC9
  141.         fi
  142.         echo    'Loading Linux linux ...'
  143.         linux   /vmlinuz-linux root=UUID=ff637c2e-1e42-4533-9a12-6ac2f6d43c9b rw  
  144.         echo    'Loading initial ramdisk ...'
  145.         initrd  /intel-ucode.img /initramfs-linux-fallback.img
  146.     }
  147. }
  148.  
  149. ### END /etc/grub.d/10_linux ###
  150.  
  151. ### BEGIN /etc/grub.d/20_linux_xen ###
  152. ### END /etc/grub.d/20_linux_xen ###
  153.  
  154. ### BEGIN /etc/grub.d/30_os-prober ###
  155. ### END /etc/grub.d/30_os-prober ###
  156.  
  157. ### BEGIN /etc/grub.d/40_custom ###
  158. # This file provides an easy way to add custom menu entries.  Simply type the
  159. # menu entries you want to add after this comment.  Be careful not to change
  160. # the 'exec tail' line above.
  161.  
  162. menuentry 'FreeBSD 11.0' {
  163.     insmod ufs2
  164.     set root=(hd0,gpt4)
  165.     kfreebsd /boot/kernel/kernel
  166.     kfreebsd_loadenv /boot/device.hints
  167.     set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ada0p4
  168.     set kFreeBSD.vfs.root.mountfrom.options=rw
  169. }
  170.  
  171. ### END /etc/grub.d/40_custom ###
  172.  
  173. ### BEGIN /etc/grub.d/41_custom ###
  174. if [ -f  ${config_directory}/custom.cfg ]; then
  175.   source ${config_directory}/custom.cfg
  176. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  177.   source $prefix/custom.cfg;
  178. fi
  179. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement