Skip to content

A Rust CLI to help manipulate BootNext UEFI NVRAM variable. Yes select the OS on next boot without spamming ESC.

License

Notifications You must be signed in to change notification settings

honguyenminh/bootnextr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootnextr

A (hastily-written) Rust CLI to help manipulate BootNext NVRAM variable.

What is that jargon? Basically, if you dual-boot, and everytime you swap OS, you have to spam ESC or some other keys to open up the boot entry select menu, you will probably like this.

This selects the OS (or boot entry) that will be used ONLY on the next time your machine boots, without having to spam the key.

Be mindful I use full-text search because this is app from the 90s.

Usage

Download the binary from the Releases tab on the right, or compile the project from source.

Compile project

Then run in your terminal for full help text:

bootnextr --help

Replace bootnextr with the path to the compiled CLI. You can put it anywhere, then add that folder to PATH for access from anywhere.

Dependencies

This tool requires efibootmgr and shutdown on Linux, and bcdedit on Windows (which is pre-installed). Check if you can run these commands in your terminal.

Linux version can list boot entries without root permission, but all other functionalities, and the Windows version, requires elevated permission (root/Admin).

Compile

Install rust toolchain (cargo, rustc) if you haven't done so.

Run cargo build --release, binary will be compiled into target/release folder.

Happy multi-booting!

About

A Rust CLI to help manipulate BootNext UEFI NVRAM variable. Yes select the OS on next boot without spamming ESC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages