From 060f89bf2103ce9cc1580154b360d2ce8fa82455 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Wed, 6 Feb 2019 16:00:25 -0500 Subject: [PATCH] pentoo-livecd: add some silly warnings for people using nvidia on amd cpu --- .../files/binary-driver-handler.initd-2019.0-r1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pentoo/pentoo-livecd/files/binary-driver-handler.initd-2019.0-r1 b/pentoo/pentoo-livecd/files/binary-driver-handler.initd-2019.0-r1 index ffbe20292..20d294635 100644 --- a/pentoo/pentoo-livecd/files/binary-driver-handler.initd-2019.0-r1 +++ b/pentoo/pentoo-livecd/files/binary-driver-handler.initd-2019.0-r1 @@ -57,6 +57,10 @@ start() { blacklist nouveau #fix pax flags for hardened handle_pax + if [ "$(uname -i)" = "AuthenticAMD" ] && ! grep -q 'mem_encrypt=off' /proc/cmdline; then + ewarn "This setup is extremely unlikely to work without adding 'mem_encrypt=off' to the kernel line" + fi + fi #check for intel gpu @@ -108,6 +112,9 @@ start() { switch_to_nouveau fi else + if [ "$(uname -i)" = "AuthenticAMD" ] && ! grep -q 'mem_encrypt=off' /proc/cmdline; then + ewarn "This setup is extremely unlikely to work without adding 'mem_encrypt=off' to the kernel line" + fi #first we detect if the nvidia binary driver can actually support the hardware NV_TARBALL="$(FETCHCOMMAND="false" RESUMECOMMAND="false" FEATURES="-getbinpkg" emerge --color=n -f nvidia-drivers --nodeps 2> /dev/zero | \ grep "run BLAKE2B SHA512 size ;-) ..." | awk '{print $2}')"