grub-reboot
set default boot entry for next reboot only
TLDR
Set the default boot entry for the next boot only
SYNOPSIS
grub-reboot [options] entry
DESCRIPTION
grub-reboot sets the default boot entry for the next boot only. After booting once, GRUB reverts to the permanent default set by grub-set-default or the configuration file.
The entry can be specified as a number (0 for first entry), the full entry name from grub.cfg, or a menu entry identifier. Use grep menuentry /boot/grub/grub.cfg to see available entries.
This is useful for one-time boots into recovery mode, alternative kernels, or other operating systems without permanently changing the boot order.
PARAMETERS
entry
Menu entry number (0-indexed), name, or identifier--boot-directory DIR
Use alternative boot directory instead of /boot
CONFIGURATION
/etc/default/grub
Must contain GRUB_DEFAULT=saved for grub-reboot to function.
CAVEATS
Requires GRUB_DEFAULT=saved in /etc/default/grub and subsequent grub-mkconfig to function. The setting is stored in grubenv, which must be writable. Only affects the immediate next boot.
HISTORY
grub-reboot is part of GRUB 2, providing the "boot once" functionality that was present in GRUB Legacy. It enables safe testing of alternative boot configurations with automatic fallback.
SEE ALSO
grub-set-default(8), grub-mkconfig(8), grub-editenv(1)
