The set-menu subcommand changes GRUB menu configuration such as the timeout or the default boot entry:
$ bootadm set-menu [-P pool] [-R altroot [-p platform]] argument
The argument variable consists of one or a series of key=value pairs.
Example 1 Changing the Default Boot Entry in the GRUB MenuThis example changes the default boot entry to Oracle Solaris 11.4.
$ bootadm set-menu default=2 $ bootadm list-menu The location of the boot loader configuration file is /rpool/boot/grub default 2 console graphics timeout 30 0 Oracle Solaris 11/11 1 Oracle Solaris 11.3 2 Oracle Solaris 11.4
The change-entry subcommand performs the same function. See Using the change-entry Command.
Example 2 Changing the Menu Timeout Value in the GRUB MenuThis example changes the timeout from 30 seconds to 45 seconds.
$ bootadm set-menu timeout=45 $ bootadm list-menu The location of the boot loader configuration file is /rpool/boot/grub default 2 console graphics timeout 45 0 Oracle Solaris 11/11 1 Oracle Solaris 11.3 2 Oracle Solaris 11.4Example 3 Setting the GRUB Console Type
This example sets the console type to serial.
$ bootadm set-menu console=serial
Other than serial type, text and graphics console types are also supported. Specify text if you are using BIOS serial redirection.
For a serial type console, you can set the following parameters through the serial_params argument:
Port number from 0 to 3. Typically, 0 is used for ttya or COM1, 1 for ttyb or COM2, and so on.
Speed that the serial port uses.
Without a value specified, GRUB 2 uses the speed that the serial port has been initialized to use. But if the serial port has not been initialized, an undetermined speed might cause unpredictable output. To be safe, always provide a speed value.
Either 7 or 8.
Can be e (even), o (odd), or n (none).
Either 0 or 1.
All of the serial parameters, with the exception of port, are optional.