feat: add an option to stop creating efi boot entries

This commit is contained in:
Adrian Wannenmacher 2021-06-18 20:02:35 +02:00
parent 782be942eb
commit 8a27b4e196
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
2 changed files with 7 additions and 2 deletions

View File

@ -12,6 +12,9 @@ function config -d "sets some configuration variables"
# images. # images.
set -g CFG_DEFAULT_SUBVOL "@" 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 # The device the EFI partition resides on
set -g CFG_EFI_DEV "/dev/nvme0n1" set -g CFG_EFI_DEV "/dev/nvme0n1"

View File

@ -138,9 +138,11 @@ function main
cp "$CFG_BUILD_DIR/$id/arch-linux-$id.efi" "$CFG_UKI_DIR" cp "$CFG_BUILD_DIR/$id/arch-linux-$id.efi" "$CFG_UKI_DIR"
echo " -> copied uki for snapshot $id into uki directory" echo " -> copied uki for snapshot $id into uki directory"
if test "$CFG_EFI" = "yes"
add_efi_entry $id add_efi_entry $id
echo " -> created efi boot entry for uki of snapshot $id" echo " -> created efi boot entry for uki of snapshot $id"
end end
end
case "current" case "current"
echo "==> creating current ukis" echo "==> creating current ukis"