From f032d191f772b80bc0b6543ecf10c21fa9b9616c Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 27 Oct 2023 12:14:22 +0200 Subject: Use bootctl to automatically find EFI_DIR. --- prepare-lastboot | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/prepare-lastboot b/prepare-lastboot index 951f906..4ba1042 100644 --- a/prepare-lastboot +++ b/prepare-lastboot @@ -3,11 +3,10 @@ DEFAULT="$1" LASTBOOT="lastboot" +EFI_DIR="$(bootctl -p)" ROOT_FS=$(findmnt -no SOURCE /) BASE="${ROOT_FS%/*}" -EFI_DIR="/efi" - # default UKI name used by kernel-install UKI_NAME="$(cat /etc/machine-id)-$(uname -r).efi" -- cgit v1.2.3-70-g09d2