@ -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'