grub-mkconfig

Generate a GRUB configuration file. More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dmkconfig.html>.

Install

All systems
curl cmd.cat/grub-mkconfig.sh
Debian Debian
apt-get install grub-common
Ubuntu
apt-get install grub-common
Alpine
apk add grub
Arch Arch Linux
pacman -S grub
image/svg+xml Kali Linux
apt-get install grub-common
CentOS
yum install grub
Windows (WSL2)
sudo apt-get update sudo apt-get install grub-common
Raspbian
apt-get install grub-common
Docker
docker run cmd.cat/grub-mkconfig grub-mkconfig powered by Commando

Generate a GRUB configuration file. More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dmkconfig.html>.

  • Do a dry run and print the configuration to `stdout`:
    sudo grub-mkconfig
  • Generate the configuration file:
    sudo grub-mkconfig --output=/boot/grub/grub.cfg
  • Print the help page:
    grub-mkconfig --help

© tl;dr; authors and contributors