microsoft / hcsshim

Windows - Host Compute Service Shim
MIT License
564 stars 253 forks source link

Add support for loading modules in init script when makefile variable is set #2167

Closed katiewasnothere closed 2 months ago

katiewasnothere commented 2 months ago

This PR adds back the support for loading kernel modules in the init script and adds a definition block around the code. This was necessary because some images we use do not have all the dependencies that kmod needs installed, causing the pods to fail to boot. To compile with this variable, you can run:

 make KMOD=1 bin/init

This PR is essentially this PR https://github.com/microsoft/hcsshim/pull/2034 with the additional Makefile work and C macro.