A lightweight next boot selector
Bootit is basically a CLI tool that makes your PC reboot to specific OS for one time.
sudo bootit scan # list IDs of bootable entries
sudo bootit alias add windows 1
sudo bootit alias add archlinux 2Then, reboot to it with
sudo it windowsor
sudo it 2or whatever. It does not change boot order.
If you want to use it without sudo, use the command below.
sudo bootit allow-non-rootFrom then on, you can use it without sudo.
it windows # No sudo required!
cargo install bootitcargo install puts bootit in ~/.cargo/bin, which is on your user PATH
but not on sudo's secure_path (the list of directories sudo searches when
you run sudo <command>). As a result, the first command fails and the
second one cannot even find the binary:
$ bootit scan
Error: This program must be run as root (try: sudo bootit ...)
$ sudo bootit scan
sudo: bootit: command not foundRun it with the full path instead:
sudo "$(which bootit)" scanor link it into a system directory once so plain sudo bootit works:
sudo ln -s "$(which bootit)" /usr/local/bin/bootitContributions are welcome! Feel free to open issues or submit pull requests on the GitHub repository