summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-07-16 10:42:18 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-08-17 09:48:49 +0200
commitaa80e1657779407b696b1ba416febdee944aa2b2 (patch)
tree04cf04412c0e004309e4e184cac2a1fc413d89d0 /sys-apps/memtest86+
parentsys-apps/memtest86-bin: use secureboot.eclass to sign efi exec (diff)
downloadgentoo-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>
Diffstat (limited to 'sys-apps/memtest86+')
-rw-r--r--sys-apps/memtest86+/memtest86+-6.20-r1.ebuild12
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() {