Advertisement
Geometrian

update-grub

May 15th, 2015
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 18.37 KB | None | 0 0
  1. >$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
  2. >$ sudo cp /boot/grub/default /boot/grub/default.bak
  3. >$ sudo rm /boot/grub/menu.lst
  4. >$ sudo rm /boot/grub/default
  5. >$ sudo update-grub
  6. Searching for GRUB installation directory ... found: /boot/grub
  7. Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
  8. Searching for GRUB installation directory ... found: /boot/grub
  9. Testing for an existing GRUB menu.lst file ...
  10.  
  11. Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
  12. Searching for splash image ... none found, skipping ...
  13. Found kernel: /boot/memtest86+.bin
  14. Found kernel: /boot/vmlinuz-3.19.0-17-generic
  15. Found kernel: /boot/vmlinuz-3.16.0-31-generic
  16. Found kernel: /boot/vmlinuz-3.13.0-40-generic
  17. Found kernel: /boot/vmlinuz-3.11.0-19-generic
  18. Found kernel: /boot/vmlinuz-3.8.0-35-generic
  19. Found kernel: /boot/memtest86+.bin
  20. Updating /boot/grub/menu.lst ... done
  21.  
  22. >$ cat /boot/grub/grub.cfg
  23. #
  24. # DO NOT EDIT THIS FILE
  25. #
  26. # It is automatically generated by grub-mkconfig using templates
  27. # from /etc/grub.d and settings from /etc/default/grub
  28. #
  29.  
  30. ### BEGIN /etc/grub.d/00_header ###
  31. if [ -s $prefix/grubenv ]; then
  32.   set have_grubenv=true
  33.   load_env
  34. fi
  35. if [ "${next_entry}" ] ; then
  36.    set default="${next_entry}"
  37.    set next_entry=
  38.    save_env next_entry
  39.    set boot_once=true
  40. else
  41.    set default="0"
  42. fi
  43.  
  44. if [ x"${feature_menuentry_id}" = xy ]; then
  45.   menuentry_id_option="--id"
  46. else
  47.   menuentry_id_option=""
  48. fi
  49.  
  50. export menuentry_id_option
  51.  
  52. if [ "${prev_saved_entry}" ]; then
  53.   set saved_entry="${prev_saved_entry}"
  54.   save_env saved_entry
  55.   set prev_saved_entry=
  56.   save_env prev_saved_entry
  57.   set boot_once=true
  58. fi
  59.  
  60. function savedefault {
  61.   if [ -z "${boot_once}" ]; then
  62.     saved_entry="${chosen}"
  63.     save_env saved_entry
  64.   fi
  65. }
  66. function recordfail {
  67.   set recordfail=1
  68.   if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  69. }
  70. function load_video {
  71.   if [ x$feature_all_video_module = xy ]; then
  72.     insmod all_video
  73.   else
  74.     insmod efi_gop
  75.     insmod efi_uga
  76.     insmod ieee1275_fb
  77.     insmod vbe
  78.     insmod vga
  79.     insmod video_bochs
  80.     insmod video_cirrus
  81.   fi
  82. }
  83.  
  84. if [ x$feature_default_font_path = xy ] ; then
  85.    font=unicode
  86. else
  87. insmod part_msdos
  88. insmod ext2
  89. set root='hd0,msdos1'
  90. if [ x$feature_platform_search_hint = xy ]; then
  91.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  92. else
  93.   search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  94. fi
  95.     font="/usr/share/grub/unicode.pf2"
  96. fi
  97.  
  98. if loadfont $font ; then
  99.   set gfxmode=auto
  100.   load_video
  101.   insmod gfxterm
  102.   set locale_dir=$prefix/locale
  103.   set lang=en_US
  104.   insmod gettext
  105. fi
  106. terminal_output gfxterm
  107. if [ "${recordfail}" = 1 ] ; then
  108.   set timeout=-1
  109. else
  110.   if [ x$feature_timeout_style = xy ] ; then
  111.     set timeout_style=hidden
  112.     set timeout=0
  113.   # Fallback hidden-timeout code in case the timeout_style feature is
  114.   # unavailable.
  115.   elif sleep --interruptible 0 ; then
  116.     set timeout=0
  117.   fi
  118. fi
  119. ### END /etc/grub.d/00_header ###
  120.  
  121. ### BEGIN /etc/grub.d/05_debian_theme ###
  122. set menu_color_normal=white/black
  123. set menu_color_highlight=black/light-gray
  124. if background_color 44,0,30,0; then
  125.   clear
  126. fi
  127. ### END /etc/grub.d/05_debian_theme ###
  128.  
  129. ### BEGIN /etc/grub.d/10_linux ###
  130. function gfxmode {
  131.     set gfxpayload="${1}"
  132.     if [ "${1}" = "keep" ]; then
  133.         set vt_handoff=vt.handoff=7
  134.     else
  135.         set vt_handoff=
  136.     fi
  137. }
  138. if [ "${recordfail}" != 1 ]; then
  139.   if [ -e ${prefix}/gfxblacklist.txt ]; then
  140.     if hwmatch ${prefix}/gfxblacklist.txt 3; then
  141.       if [ ${match} = 0 ]; then
  142.         set linux_gfx_mode=keep
  143.       else
  144.         set linux_gfx_mode=text
  145.       fi
  146.     else
  147.       set linux_gfx_mode=text
  148.     fi
  149.   else
  150.     set linux_gfx_mode=keep
  151.   fi
  152. else
  153.   set linux_gfx_mode=text
  154. fi
  155. export linux_gfx_mode
  156. menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  157.     recordfail
  158.     load_video
  159.     gfxmode $linux_gfx_mode
  160.     insmod gzio
  161.     insmod part_msdos
  162.     insmod ext2
  163.     set root='hd0,msdos1'
  164.     if [ x$feature_platform_search_hint = xy ]; then
  165.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  166.     else
  167.       search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  168.     fi
  169.     linux    /boot/vmlinuz-3.16.0-31-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro  quiet splash $vt_handoff
  170.     initrd    /boot/initrd.img-3.16.0-31-generic
  171. }
  172. submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  173.     menuentry 'Ubuntu, with Linux 3.16.0-31-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-31-generic-advanced-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  174.         recordfail
  175.         load_video
  176.         gfxmode $linux_gfx_mode
  177.         insmod gzio
  178.         insmod part_msdos
  179.         insmod ext2
  180.         set root='hd0,msdos1'
  181.         if [ x$feature_platform_search_hint = xy ]; then
  182.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  183.         else
  184.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  185.         fi
  186.         echo    'Loading Linux 3.16.0-31-generic ...'
  187.         linux    /boot/vmlinuz-3.16.0-31-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro  quiet splash $vt_handoff
  188.         echo    'Loading initial ramdisk ...'
  189.         initrd    /boot/initrd.img-3.16.0-31-generic
  190.     }
  191.     menuentry 'Ubuntu, with Linux 3.16.0-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-31-generic-recovery-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  192.         recordfail
  193.         load_video
  194.         insmod gzio
  195.         insmod part_msdos
  196.         insmod ext2
  197.         set root='hd0,msdos1'
  198.         if [ x$feature_platform_search_hint = xy ]; then
  199.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  200.         else
  201.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  202.         fi
  203.         echo    'Loading Linux 3.16.0-31-generic ...'
  204.         linux    /boot/vmlinuz-3.16.0-31-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro recovery nomodeset
  205.         echo    'Loading initial ramdisk ...'
  206.         initrd    /boot/initrd.img-3.16.0-31-generic
  207.     }
  208.     menuentry 'Ubuntu, with Linux 3.16.0-30-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-30-generic-advanced-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  209.         recordfail
  210.         load_video
  211.         gfxmode $linux_gfx_mode
  212.         insmod gzio
  213.         insmod part_msdos
  214.         insmod ext2
  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  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  218.         else
  219.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  220.         fi
  221.         echo    'Loading Linux 3.16.0-30-generic ...'
  222.         linux    /boot/vmlinuz-3.16.0-30-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro  quiet splash $vt_handoff
  223.         echo    'Loading initial ramdisk ...'
  224.         initrd    /boot/initrd.img-3.16.0-30-generic
  225.     }
  226.     menuentry 'Ubuntu, with Linux 3.16.0-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-30-generic-recovery-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  227.         recordfail
  228.         load_video
  229.         insmod gzio
  230.         insmod part_msdos
  231.         insmod ext2
  232.         set root='hd0,msdos1'
  233.         if [ x$feature_platform_search_hint = xy ]; then
  234.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  235.         else
  236.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  237.         fi
  238.         echo    'Loading Linux 3.16.0-30-generic ...'
  239.         linux    /boot/vmlinuz-3.16.0-30-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro recovery nomodeset
  240.         echo    'Loading initial ramdisk ...'
  241.         initrd    /boot/initrd.img-3.16.0-30-generic
  242.     }
  243.     menuentry 'Ubuntu, with Linux 3.16.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-29-generic-advanced-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  244.         recordfail
  245.         load_video
  246.         gfxmode $linux_gfx_mode
  247.         insmod gzio
  248.         insmod part_msdos
  249.         insmod ext2
  250.         set root='hd0,msdos1'
  251.         if [ x$feature_platform_search_hint = xy ]; then
  252.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  253.         else
  254.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  255.         fi
  256.         echo    'Loading Linux 3.16.0-29-generic ...'
  257.         linux    /boot/vmlinuz-3.16.0-29-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro  quiet splash $vt_handoff
  258.         echo    'Loading initial ramdisk ...'
  259.         initrd    /boot/initrd.img-3.16.0-29-generic
  260.     }
  261.     menuentry 'Ubuntu, with Linux 3.16.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-29-generic-recovery-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  262.         recordfail
  263.         load_video
  264.         insmod gzio
  265.         insmod part_msdos
  266.         insmod ext2
  267.         set root='hd0,msdos1'
  268.         if [ x$feature_platform_search_hint = xy ]; then
  269.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  270.         else
  271.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  272.         fi
  273.         echo    'Loading Linux 3.16.0-29-generic ...'
  274.         linux    /boot/vmlinuz-3.16.0-29-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro recovery nomodeset
  275.         echo    'Loading initial ramdisk ...'
  276.         initrd    /boot/initrd.img-3.16.0-29-generic
  277.     }
  278.     menuentry 'Ubuntu, with Linux 3.13.0-40-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-40-generic-advanced-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  279.         recordfail
  280.         load_video
  281.         gfxmode $linux_gfx_mode
  282.         insmod gzio
  283.         insmod part_msdos
  284.         insmod ext2
  285.         set root='hd0,msdos1'
  286.         if [ x$feature_platform_search_hint = xy ]; then
  287.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  288.         else
  289.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  290.         fi
  291.         echo    'Loading Linux 3.13.0-40-generic ...'
  292.         linux    /boot/vmlinuz-3.13.0-40-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro  quiet splash $vt_handoff
  293.         echo    'Loading initial ramdisk ...'
  294.         initrd    /boot/initrd.img-3.13.0-40-generic
  295.     }
  296.     menuentry 'Ubuntu, with Linux 3.13.0-40-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-40-generic-recovery-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  297.         recordfail
  298.         load_video
  299.         insmod gzio
  300.         insmod part_msdos
  301.         insmod ext2
  302.         set root='hd0,msdos1'
  303.         if [ x$feature_platform_search_hint = xy ]; then
  304.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  305.         else
  306.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  307.         fi
  308.         echo    'Loading Linux 3.13.0-40-generic ...'
  309.         linux    /boot/vmlinuz-3.13.0-40-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro recovery nomodeset
  310.         echo    'Loading initial ramdisk ...'
  311.         initrd    /boot/initrd.img-3.13.0-40-generic
  312.     }
  313.     menuentry 'Ubuntu, with Linux 3.11.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-19-generic-advanced-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  314.         recordfail
  315.         load_video
  316.         gfxmode $linux_gfx_mode
  317.         insmod gzio
  318.         insmod part_msdos
  319.         insmod ext2
  320.         set root='hd0,msdos1'
  321.         if [ x$feature_platform_search_hint = xy ]; then
  322.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  323.         else
  324.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  325.         fi
  326.         echo    'Loading Linux 3.11.0-19-generic ...'
  327.         linux    /boot/vmlinuz-3.11.0-19-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro  quiet splash $vt_handoff
  328.         echo    'Loading initial ramdisk ...'
  329.         initrd    /boot/initrd.img-3.11.0-19-generic
  330.     }
  331.     menuentry 'Ubuntu, with Linux 3.11.0-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-19-generic-recovery-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  332.         recordfail
  333.         load_video
  334.         insmod gzio
  335.         insmod part_msdos
  336.         insmod ext2
  337.         set root='hd0,msdos1'
  338.         if [ x$feature_platform_search_hint = xy ]; then
  339.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  340.         else
  341.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  342.         fi
  343.         echo    'Loading Linux 3.11.0-19-generic ...'
  344.         linux    /boot/vmlinuz-3.11.0-19-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro recovery nomodeset
  345.         echo    'Loading initial ramdisk ...'
  346.         initrd    /boot/initrd.img-3.11.0-19-generic
  347.     }
  348.     menuentry 'Ubuntu, with Linux 3.8.0-35-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-35-generic-advanced-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  349.         recordfail
  350.         load_video
  351.         gfxmode $linux_gfx_mode
  352.         insmod gzio
  353.         insmod part_msdos
  354.         insmod ext2
  355.         set root='hd0,msdos1'
  356.         if [ x$feature_platform_search_hint = xy ]; then
  357.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  358.         else
  359.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  360.         fi
  361.         echo    'Loading Linux 3.8.0-35-generic ...'
  362.         linux    /boot/vmlinuz-3.8.0-35-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro  quiet splash $vt_handoff
  363.         echo    'Loading initial ramdisk ...'
  364.         initrd    /boot/initrd.img-3.8.0-35-generic
  365.     }
  366.     menuentry 'Ubuntu, with Linux 3.8.0-35-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-35-generic-recovery-ac9d0eaf-e090-4c29-8e7b-30e98ed07d29' {
  367.         recordfail
  368.         load_video
  369.         insmod gzio
  370.         insmod part_msdos
  371.         insmod ext2
  372.         set root='hd0,msdos1'
  373.         if [ x$feature_platform_search_hint = xy ]; then
  374.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  375.         else
  376.           search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  377.         fi
  378.         echo    'Loading Linux 3.8.0-35-generic ...'
  379.         linux    /boot/vmlinuz-3.8.0-35-generic root=UUID=ac9d0eaf-e090-4c29-8e7b-30e98ed07d29 ro recovery nomodeset
  380.         echo    'Loading initial ramdisk ...'
  381.         initrd    /boot/initrd.img-3.8.0-35-generic
  382.     }
  383. }
  384.  
  385. ### END /etc/grub.d/10_linux ###
  386.  
  387. ### BEGIN /etc/grub.d/20_linux_xen ###
  388.  
  389. ### END /etc/grub.d/20_linux_xen ###
  390.  
  391. ### BEGIN /etc/grub.d/20_memtest86+ ###
  392. menuentry 'Memory test (memtest86+)' {
  393.     insmod part_msdos
  394.     insmod ext2
  395.     set root='hd0,msdos1'
  396.     if [ x$feature_platform_search_hint = xy ]; then
  397.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  398.     else
  399.       search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  400.     fi
  401.     knetbsd    /boot/memtest86+.elf
  402. }
  403. menuentry 'Memory test (memtest86+, serial console 115200)' {
  404.     insmod part_msdos
  405.     insmod ext2
  406.     set root='hd0,msdos1'
  407.     if [ x$feature_platform_search_hint = xy ]; then
  408.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  409.     else
  410.       search --no-floppy --fs-uuid --set=root ac9d0eaf-e090-4c29-8e7b-30e98ed07d29
  411.     fi
  412.     linux16    /boot/memtest86+.bin console=ttyS0,115200n8
  413. }
  414. ### END /etc/grub.d/20_memtest86+ ###
  415.  
  416. ### BEGIN /etc/grub.d/30_os-prober ###
  417. ### END /etc/grub.d/30_os-prober ###
  418.  
  419. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  420. ### END /etc/grub.d/30_uefi-firmware ###
  421.  
  422. ### BEGIN /etc/grub.d/40_custom ###
  423. # This file provides an easy way to add custom menu entries.  Simply type the
  424. # menu entries you want to add after this comment.  Be careful not to change
  425. # the 'exec tail' line above.
  426. ### END /etc/grub.d/40_custom ###
  427.  
  428. ### BEGIN /etc/grub.d/41_custom ###
  429. if [ -f  ${config_directory}/custom.cfg ]; then
  430.   source ${config_directory}/custom.cfg
  431. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  432.   source $prefix/custom.cfg;
  433. fi
  434. ### END /etc/grub.d/41_custom ###
  435. >$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement