/bootoption

EFI boot menu manipulation for macOS, like efibootmgr

Primary LanguageSwiftGNU General Public License v3.0GPL-3.0

bootoption

bootoption screenshot

EFI boot menu manipulation for macOS, report bugs here on GitHub.

Installation

Installer packages are available from the Releases page.

Homebrew

brew tap bootoption/repo
brew install bootoption

Usage

Show help
bootoption --help
The packages also install a man page
man bootoption
Create a new option and add it to the boot order
sudo bootoption create -l /Volumes/EFI/EFI/GRUB/GRUBX64.EFI -d "GNU GRUB"
Move an option from 4th to 1st in the boot order
sudo bootoption order 4 1
Disable an option
sudo bootoption set -n Boot0002 --active 0
Change the boot menu timeout to 10 seconds
sudo bootoption set -t 10
Set an option's command line argmuments
sudo bootoption set -n Boot0000 -a "initrd=/initramfs.img root=/dev/disk/by-uuid/346d9a61-f7e5-4f58-bad7-026bb5376e0f"
Reboot to firmware settings
sudo bootoption reboot

System Integrity Protection

Note: csrutil needs to be executed from the Recovery OS.

Disable SIP
csrutil disable
Disable only NVRAM protections
csrutil enable --without nvram

License

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Individual files contain the following tag instead of the full license text:

SPDX-License-Identifier: GPL-3.0-or-later

This enables machine processing of license information based on the SPDX License Identifiers that are available here: http://spdx.org/licenses/.