Enable `modprobe zfs` by running depmod on the new kernel build.
Depmod in the zfs makefiles will never run as `/boot/` and relevant map files dont exist in our build environments.
Included style suggestions by
@@ -52,6 +52,10 @@ RUN ./autogen.sh && \
make -j "$(getconf _NPROCESSORS_ONLN)" && \
make install
+# Run depmod against the new module directory.
+RUN cd /lib/modules && \
+ depmod -ae *
+
FROM scratch
ENTRYPOINT []
CMD []
