HOOK for pre kernel module loading? #324
              
                
                  
                  
                    Answered
                  
                  by
                    troglobit
                  
              
          
                  
                    
                      hongkongkiwi
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Which hook is best to use for running a script before a kernel module loads? I want to populate some files for a kernel module to use. | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            troglobit
          
      
      
        Dec 4, 2022 
      
    
    Replies: 1 comment
-
| Both the modules-load and modprobe plugins run at  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        hongkongkiwi
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Both the modules-load and modprobe plugins run at
HOOK_BASEFS_UP, so I'd suggest the script hook right before that,HOOK_MOUNT_POST. I.e.,hook/mount/post.