EFI boot menu manipulation for macOS, report bugs here on GitHub.
Binaries and installer packages are available from the Releases page.
brew tap bootoption/repo
brew install bootoption
bootoption --help
man bootoption
sudo bootoption create -l /Volumes/EFI/EFI/GRUB/GRUBX64.EFI -d "GNU GRUB"
sudo bootoption order 4 1
sudo bootoption set -n Boot0002 --active 0
sudo bootoption set -t 10
sudo bootoption set -n Boot0000 -a "initrd=/initramfs.img root=/dev/disk/by-uuid/346d9a61-f7e5-4f58-bad7-026bb5376e0f"
sudo bootoption reboot
Note: csrutil needs to be executed from the Recovery OS.
csrutil disable
csrutil enable --without nvram
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/.