From 54d9f7253622778141f9116535ced08423c8e391 Mon Sep 17 00:00:00 2001 From: bwt Date: Wed, 2 Feb 2022 16:41:51 -0500 Subject: [PATCH] Include secure boot functionality. --- refind.hook | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/refind.hook b/refind.hook index c00df59..fed1028 100644 --- a/refind.hook +++ b/refind.hook @@ -2,8 +2,10 @@ Type=Package Operation=Upgrade Target=refind-efi +Target=preloader +Target=preloader-signed [Action] Description = Updating rEFInd on ESP When=PostTransaction -Exec=/usr/bin/refind-install +Exec=/usr/bin/sh -c 'ESP="$(/usr/bin/lsblk -ro MOUNTPOINTS,PARTTYPE | grep c12a7328-f81f-11d2-ba4b-00a0c93ec93b | cut -d\ -f1)"; if [ -e ${ESP}/EFI/refind/PreLoader.efi ]; then /usr/bin/refind-install --yes --preloader /usr/share/preloader-signed/PreLoader.efi; else /usr/bin/refind-install --yes; fi'