You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
471 B

[Trigger]
Type=Package
Operation=Upgrade
Target=refind-efi
Target=preloader
Target=preloader-signed
[Action]
Description = Updating rEFInd on ESP
When=PostTransaction
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'