diff options
author | Ben Kohler <bkohler@gentoo.org> | 2021-09-20 06:28:08 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2021-09-20 06:28:47 -0500 |
commit | 44bcb5c909b012409ce5618b5031dc6478eef317 (patch) | |
tree | 6d7df374690eb345c9e7f2c5438e943df70ed65e /sys-apps | |
parent | app-doc/doxygen: Keyword 1.9.1 for ~m68k (diff) | |
download | gentoo-44bcb5c909b012409ce5618b5031dc6478eef317.tar.gz gentoo-44bcb5c909b012409ce5618b5031dc6478eef317.tar.bz2 gentoo-44bcb5c909b012409ce5618b5031dc6478eef317.zip |
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@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/memtest86-bin/memtest86-bin-9.2.ebuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys-apps/memtest86-bin/memtest86-bin-9.2.ebuild b/sys-apps/memtest86-bin/memtest86-bin-9.2.ebuild index 97f87cab2411..bcd35375627c 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 +} |