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