post_pkg_postinst() { if [[ "$(bootctl is-installed)" == "yes" ]] && command -v sbctl &>/dev/null; then ebegin "Signing systemd-bootx64" sbctl sign -s -o /usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed /usr/lib/systemd/boot/efi/systemd-bootx64.efi eend ${?} || ewarn "Signing systemd-bootx64 failed" fi }