summaryrefslogtreecommitdiffstats
path: root/boot-efi/env/sys-apps/systemd
blob: 37a11c9cb69c8c84c15ab67cc6d55b1ddc197a97 (plain) (blame)
1
2
3
4
5
6
7
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
}