commit: 44bcb5c909b012409ce5618b5031dc6478eef317
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 20 11:28:08 2021 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Mon Sep 20 11:28:47 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44bcb5c9
sys-apps/memtest86-bin: add warning for BIOS users
Package-Manager: Portage-3.0.23, Repoman-3.0.3
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
sys-apps/memtest86-bin/memtest86-bin-9.2.ebuild | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sys-apps/memtest86-bin/memtest86-bin-9.2.ebuild
b/sys-apps/memtest86-bin/memtest86-bin-9.2.ebuild
index 97f87cab241..bcd35375627 100644
--- a/sys-apps/memtest86-bin/memtest86-bin-9.2.ebuild
+++ b/sys-apps/memtest86-bin/memtest86-bin-9.2.ebuild
@@ -33,3 +33,11 @@ src_install() {
dodoc MemTest86_User_Guide_UEFI.pdf
}
+
+pkg_postinst() {
+ mount-boot_pkg_postinst
+
+ if [ ! -e /sys/firmware/efi ]; then
+ ewarn "WARNING: You appear to be booted in BIOS mode but ${PN}
is an EFI-only tool."
+ fi
+}