scr/efibootmgr-entry-create.sh

19 lines
374 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
2023-01-15 05:14:21 +00:00
# Version: 1.0.1.3
2022-11-21 22:57:41 +00:00
2023-01-15 05:14:21 +00:00
doas efibootmgr\
--disk /dev/nvme0n1\
--part 1\
--create\
--label "custom"\
--loader '\EFI\custom\vmlinuz'\
--unicode\
2022-11-21 22:57:41 +00:00
'root=UUID=[REDACTED] rd.luks.uuid=[REDACTED] quiet splash initrd=\EFI\custom\initramfs.img'