grub-set-default
Set the default boot entry for GRUB. More information: <https://manned.org/grub-set-default>.
Install
- All systems
-
curl cmd.cat/grub-set-default.sh
- Debian
-
apt-get install grub2-common
- Ubuntu
-
apt-get install grub2-common
- Alpine
-
apk add grub
- Arch Linux
-
pacman -S grub
- Kali Linux
-
apt-get install grub2-common
- CentOS
-
yum install grub
- Fedora
-
dnf install grub2-common
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install grub2-common
- Raspbian
-
apt-get install grub2-common
- Dockerfile
- dockerfile.run/grub-set-default
- Docker
-
docker run cmd.cat/grub-set-default grub-set-default
powered by Commando
Set the default boot entry for GRUB. More information: <https://manned.org/grub-set-default>.
-
Set the default boot entry to an entry number, name or identifier:
sudo grub-set-default entry_number
-
Set the default boot entry to an entry number, name or identifier for an alternative boot directory:
sudo grub-set-default --boot-directory /path/to/boot_directory entry_number
© tl;dr; authors and contributors