From f72462fb6e9a68e7484d354319bf9d7224d5a6c3 Mon Sep 17 00:00:00 2001 From: inference Date: Mon, 21 Nov 2022 22:57:41 +0000 Subject: [PATCH] Add efibootmgr entry creation script. --- efibootmgr-entry-create.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 efibootmgr-entry-create.sh diff --git a/efibootmgr-entry-create.sh b/efibootmgr-entry-create.sh new file mode 100644 index 0000000..2206a5f --- /dev/null +++ b/efibootmgr-entry-create.sh @@ -0,0 +1,18 @@ +#!/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'