From 8a27b4e196847b587831f1613d59ae0fb2ed3a4c Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Fri, 18 Jun 2021 20:02:35 +0200 Subject: [PATCH] feat: :sparkles: add an option to stop creating efi boot entries --- src/config.fish | 3 +++ src/snap-pac-uki.fish | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/config.fish b/src/config.fish index 997bd9e..43407bb 100755 --- a/src/config.fish +++ b/src/config.fish @@ -12,6 +12,9 @@ function config -d "sets some configuration variables" # images. set -g CFG_DEFAULT_SUBVOL "@" + # Wheter to add a new EFI entry for a new snapshot uki + set -g CFG_EFI "yes" + # The device the EFI partition resides on set -g CFG_EFI_DEV "/dev/nvme0n1" diff --git a/src/snap-pac-uki.fish b/src/snap-pac-uki.fish index da252ab..6bbee90 100755 --- a/src/snap-pac-uki.fish +++ b/src/snap-pac-uki.fish @@ -138,8 +138,10 @@ function main cp "$CFG_BUILD_DIR/$id/arch-linux-$id.efi" "$CFG_UKI_DIR" echo " -> copied uki for snapshot $id into uki directory" - add_efi_entry $id - echo " -> created efi boot entry for uki of snapshot $id" + if test "$CFG_EFI" = "yes" + add_efi_entry $id + echo " -> created efi boot entry for uki of snapshot $id" + end end case "current"