scr/efibootmgr-entry-create.sh

19 lines
357 B
Bash
Raw Normal View History

2022-11-21 22:57:41 +00:00
#!/bin/bash
# efibootmgr - Create boot entry
# Copyright 2022 Inference
# License: BSD 3-Clause Clear
# 0.0.0.0
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'