The branch main has been updated by kevans:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=763a097c156f36830e774b3cc789f68c5d1ae601

commit 763a097c156f36830e774b3cc789f68c5d1ae601
Author:     Kyle Evans <kev...@freebsd.org>
AuthorDate: 2025-07-31 04:41:28 +0000
Commit:     Kyle Evans <kev...@freebsd.org>
CommitDate: 2025-07-31 04:41:28 +0000

    loader: add nvidia modules to the loader blacklist
    
    It is known that nvidia modules, like the drm modules that are already
    present, will panic if loaded in early boot rather than later.  Pop them
    into our list to deny loading them if someone were to add, e.g.,
    nvidia-modeset_load="YES", to their loader.conf.  This doesn't prevent
    them from being loaded if one drops to the loader prompt, but it does
    prevent the standard user from easy foot-shooting if they find old or
    inaccurate information out in the wild.
    
    Reviewed by:    imp, kbowling
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D51644
---
 stand/defaults/loader.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stand/defaults/loader.conf b/stand/defaults/loader.conf
index f0843f3e930b..036479d22285 100644
--- a/stand/defaults/loader.conf
+++ b/stand/defaults/loader.conf
@@ -114,6 +114,7 @@ kernels_autodetect="YES"    # Auto-detect kernel 
directories in /boot
 #currdev="disk1s1a"            # Set the current device
 module_path="/boot/modules;/boot/firmware;/boot/dtb;/boot/dtb/overlays"        
# Set the module search path
 module_blacklist="drm drm2 radeonkms i915kms amdgpu if_iwlwifi if_rtw88 
if_rtw89"      # Loader module blacklist
+module_blacklist="${module_blacklist} nvidia nvidia-drm nvidia-modeset"
 #prompt="\\${interpret}"       # Set the command prompt
 #root_disk_unit="0"            # Force the root disk unit number
 #rootdev="disk1s1a"            # Set the root filesystem

Reply via email to