diff options
Diffstat (limited to 'boot-efi/env')
-rw-r--r-- | boot-efi/env/sys-apps/systemd | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/boot-efi/env/sys-apps/systemd b/boot-efi/env/sys-apps/systemd index 91b83b4..37a11c9 100644 --- a/boot-efi/env/sys-apps/systemd +++ b/boot-efi/env/sys-apps/systemd @@ -1,3 +1,7 @@ -if test "${EBUILD_PHASE}" = "postinst"; then - bootctl --no-variables --graceful update -fi +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 +} |