summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2023-10-27 12:14:22 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2023-10-27 12:14:22 +0200
commitf032d191f772b80bc0b6543ecf10c21fa9b9616c (patch)
tree4492949952ab3528ed842625d6c03705cd7ed961
parent7ddbe2aee8b968cbbdd2718190d687ee21b8de22 (diff)
downloadprepare-lastboot-1.2.tar.gz
prepare-lastboot-1.2.tar.bz2
prepare-lastboot-1.2.zip
Use bootctl to automatically find EFI_DIR.v1.2
-rw-r--r--prepare-lastboot3
1 files changed, 1 insertions, 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"