Skip to content

berkley4/grub2-default

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 

Repository files navigation

This script lists the grub2 menu entries (including submenus) 
and allows you to select which one to boot by default. It sets 
the menu (and submenu) number in GRUB_DEFAULT in 
/etc/default/grub, and then (by default) runs update-grub.

The script was written after spending some time trying to 
google a solution to what should be an easy task. The default 
method of using grub-set-default didn't work for me, so I 
worked out a way to set the default entry without having to 
look through grub.cfg and figuring out which numbers or 
titles to use.

The number method I used seems to work reliably and should 
hopefully work on other setups, but no guarantees. The script 
has been made to be as portable as possible.

About

Shell script that lets you set a default grub2 boot entry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages