Merge pull request #2514 from matjohn2/zfs-depmod-fix

Ensure depmod is run on ZFS module builds (fixes ZFS modprobe)
This commit is contained in:
Rolf Neugebauer 2017-09-18 11:31:15 +01:00 committed by GitHub
commit ac18bbfda0

View File

@ -8,7 +8,7 @@ RUN apk add \
build-base \ build-base \
file \ file \
git \ git \
libtirpc-dev \ libtirpc-dev \
libtool \ libtool \
util-linux-dev \ util-linux-dev \
zlib-dev zlib-dev
@ -52,6 +52,10 @@ RUN ./autogen.sh && \
make -j "$(getconf _NPROCESSORS_ONLN)" && \ make -j "$(getconf _NPROCESSORS_ONLN)" && \
make install make install
# Run depmod against the new module directory.
RUN cd /lib/modules && \
depmod -ae *
FROM scratch FROM scratch
ENTRYPOINT [] ENTRYPOINT []
CMD [] CMD []