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"