grub2-mkconfig

Generate grub.cfg configuration file.

grammar

Usage: grub2-mkconfig [OPTION]
Generate grub configuration file

   -o, --output=FILE Output the generated configuration to a FILE file [default=stdout]
   -h, --help print this file and exit
   -v, --version print version information and exit

Report bugs via <[email protected]>.

Example

Generate new grub configuration file

grub2-mkconfig -o /boot/grub2/grub.cfg

# or

grub2-mkconfig > /boot/grub2/grub.cfg