Go to main content

Booting and Shutting Down Oracle® Solaris 11.3 Systems

Exit Print View

Updated: October 2017
 
 

x86: How to Manually Regenerate the GRUB Menu

Use the bootadm generate-menu command to manually regenerate a grub.cfg file that contains the OS instances that are currently installed on a system.

Information from the /usr/lib/grub2/bios/etc/default/grub or the /usr/lib/grub2/uefi64/etc/default/grub file, combined with information from GRUB meta configuration file, rpool/boot/grub/menu.conf, is used to generate the final grub.cfg file.

  1. Assume the root role.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Generate the grub.cfg file.
    # bootadm generate-menu
    • If the grub.cfg file already exists, use the –f option to overwrite the existing file.
      # bootadm generate-menu -f
    • Generate a new GRUB menu for a root pool other than the current root pool, as follows:
      # bootadm generate-menu -P pool-name
  3. Verify that the menu has been updated to reflect the changes.
    # bootadm list-menu

    Note -  If you do not see your changes, check the grub.cfg file to verify that the change was made.