This section covers the following topics:
On systems that support GRUB Legacy, you primarily manage the GRUB configuration and the GRUB menu by editing the menu.lst file. Systems that support GRUB 2 use the grub.cfg file. However, instead of manually editing this file, you use the boot administration interface, bootadm. You can use the bootadm command to administer most of the tasks that you previously did by editing the menu.lst file. These tasks include administering boot loader settings and the GRUB menu, as well as the individual attributes of a particular boot entry.
Adds a boot entry to the GRUB menu.
Changes the attributes of a specified boot entry in the GRUB menu.
Generates a new boot loader configuration file.
Installs the system boot loader. This subcommand applies to both x86 and SPARC platforms.
Displays the current boot entries in the GRUB menu.
The –P option supports displaying boot entries for a specified root pool. The –i option displays information about a specific menu entry identified by an index number. The –t option selects the menu entry by the title.
Removes a boot entry from the GRUB menu.
Maintains the GRUB menu. You can use this subcommand to set a particular GRUB menu entry as the default, to add security protection to the GRUB menu, and to set other menu options and boot loader options.
The –P option supports changing menus on multiple root pools.
Sets a password to prevent the GRUB menu from being seen.
Shows a boot entry from the GRUB menu. This subcommand is equivalent to list-menu.
The following procedures describe how to use the bootadm command to manage the GRUB configuration and the GRUB menu. For more complete information, see the bootadm(1M) man page.