mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
pentoo-livecd: add some silly warnings for people using nvidia on amd cpu
This commit is contained in:
parent
aaeffe8467
commit
060f89bf21
1 changed files with 7 additions and 0 deletions
|
|
@ -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}')"
|
||||
|
|
|
|||
Loading…
Reference in a new issue