diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-07-16 10:42:18 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-08-17 09:48:49 +0200 |
commit | aa80e1657779407b696b1ba416febdee944aa2b2 (patch) | |
tree | 04cf04412c0e004309e4e184cac2a1fc413d89d0 | |
parent | sys-apps/memtest86-bin: use secureboot.eclass to sign efi exec (diff) | |
download | gentoo-aa80e1657779407b696b1ba416febdee944aa2b2.tar.gz gentoo-aa80e1657779407b696b1ba416febdee944aa2b2.tar.bz2 gentoo-aa80e1657779407b696b1ba416febdee944aa2b2.zip |
sys-apps/memtest86+: use secureboot.eclass to sign efi exec
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
-rw-r--r-- | sys-apps/memtest86+/memtest86+-6.20-r1.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys-apps/memtest86+/memtest86+-6.20-r1.ebuild b/sys-apps/memtest86+/memtest86+-6.20-r1.ebuild index 91f60527b58c..878d88fd8c30 100644 --- a/sys-apps/memtest86+/memtest86+-6.20-r1.ebuild +++ b/sys-apps/memtest86+/memtest86+-6.20-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit mount-boot toolchain-funcs +inherit mount-boot secureboot toolchain-funcs MY_PV=${PV/_/-} @@ -28,6 +28,12 @@ BDEPEND=" S=${WORKDIR}/memtest86plus-${MY_PV} +pkg_setup() { + if use efi32 || use efi64; then + secureboot_pkg_setup + fi +} + src_prepare() { sed -i \ -e 's#/sbin/mkdosfs#mkfs.vfat#' \ @@ -75,6 +81,10 @@ src_install() { install_memtest_images use iso32 && newins build32/memtest.iso memtest32.iso use iso64 && newins build64/memtest.iso memtest64.iso + + if use efi32 || use efi64; then + secureboot_auto_sign --in-place + fi } pkg_pretend() { |