scr/efibootmgr-entry-create.sh

19 lines
388 B
Bash
Raw Normal View History

#!/bin/zsh
2022-11-21 22:57:41 +00:00
# efibootmgr - Boot Entry - Create
2022-11-21 22:57:41 +00:00
# Copyright 2022-2023 Inference
# SPDX-License-Identifier: BSD-3-Clause-Clear
2022-11-21 22:57:41 +00:00
# Version: 1.0.0.2
2022-11-21 22:57:41 +00:00
doas efibootmgr \\
--disk /dev/nvme0n1 \\
--part 1 \\
--create \\
--label "custom" \\
--loader '\EFI\custom\vmlinuz' \\
--unicode \\
'root=UUID=[REDACTED] rd.luks.uuid=[REDACTED] quiet splash initrd=\EFI\custom\initramfs.img'