title: Load OS X kext in the early boot process
body: <p>I have a working OSX kernel extension which I would like to be automatically loaded at boot time as early as possible. The kext is using <a href="https://developer.apple.com/library/mac/technotes/tn2127/_index.html#//apple_ref/doc/uid/DTS10003591-CH1-SUBSECTION11" rel="nofollow noreferrer">KAUTH</a> for monitoring access on a specific path so it seems to me there won't be anything that will request it to be loaded into the kernel. In this case, copying it in <code>/Library/Extensions</code> (at least since Yosemite this is the recommended path for third-party extensions) won't solve my problem.</p>
  
  <p>Is there a possibility to achieve this, whether or not by modifying the code or through some auxiliary configuration?</p>
  
  <p>I already read about using a launchd daemon to use kextload in order to load the extension, as specified in <a href="https://superuser.com/questions/47233/how-can-i-force-a-mac-os-x-kext-to-load-prior-to-login">this question</a>, but in my case, I want it to be loaded as early as possible.</p>
  
  <p><strong>Update:</strong><br>
  I am using a "generic" kernel extension (linked against BSD library) and not an I/O Kit based one.<br>
  I want my extension to be loaded before <code>launchd</code> is started.</p>