setboot
setboot
A simple Linux command line tool to modify the UEFI boot order on dual boot or multi boot systems so that an alternate operating system can be booted by default.
Installation
Prerequisites
The efibootmgr tool must be installed, which is ussed to query and modify the boot manager settings. On Ubuntu 20.04 this can be installed with:
$ apt install efibootmgr
Install the crystal compiler
Building
Build the binary with
$ cd setboot
$ shards build
Then copy to a directory in your PATH, eg.
$ cp bin/setboot /usr/local/bin
Usage
Basic usage is to run the command with a single argument to identify the name of the boot entry you want to move to the top of the boot order, eg.
$ setboot win
This will move the first active boot entry containing the string "win" to the start of the boot order. Entries are matching by searching for a case insensitive substring. Eg. "win" will match with the windows boot manager which is usually named "Windows Boot Manager".
Other options
-nwill set the boot entry for the next boot only-lwill list the available boot entries in boot order-hdisplays help
Contributing
- Fork it (https://github.com/your-github-user/setboot/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Rob David - creator and maintainer
setboot
- 0
- 0
- 0
- 0
- 0
- over 5 years ago
- July 26, 2021
Apache License 2.0
Wed, 28 Jan 2026 03:11:58 GMT