mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
Update zfs to 0.8.1
Since SPL is included in the ZFS repo from 0.8.0 this change will not be backwards compatible. Signed-off-by: Björn Ingeson <bjorn.ingeson@gmail.com>
This commit is contained in:
parent
ea23fecdee
commit
3322e7ad18
@ -12,6 +12,7 @@ RUN apk add \
|
|||||||
libtool \
|
libtool \
|
||||||
mpc1-dev \
|
mpc1-dev \
|
||||||
mpfr-dev \
|
mpfr-dev \
|
||||||
|
openssl-dev \
|
||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev
|
zlib-dev
|
||||||
|
|
||||||
@ -22,17 +23,8 @@ RUN tar xf kernel-dev.tar
|
|||||||
COPY --from=ksrc /kernel.tar /
|
COPY --from=ksrc /kernel.tar /
|
||||||
RUN tar xf kernel.tar
|
RUN tar xf kernel.tar
|
||||||
|
|
||||||
# Note: ZFS and SPL commits must match. It's unclear how much the user
|
# SPL is part of the ZFS repo since 0.8.0 (https://github.com/zfsonlinux/zfs/releases/tag/zfs-0.8.0)
|
||||||
# space tools must match the kernel module version.
|
ENV VERSION=0.8.1
|
||||||
# package on Alpine is 0.6.5.9. We pick the version that compiles with
|
|
||||||
# latest kernel we support.
|
|
||||||
ENV VERSION=0.7.12
|
|
||||||
|
|
||||||
ENV SPL_REPO=https://github.com/zfsonlinux/spl.git
|
|
||||||
ENV SPL_COMMIT=spl-${VERSION}
|
|
||||||
RUN git clone ${SPL_REPO} && \
|
|
||||||
cd spl && \
|
|
||||||
git checkout ${SPL_COMMIT}
|
|
||||||
|
|
||||||
ENV ZFS_REPO=https://github.com/zfsonlinux/zfs.git
|
ENV ZFS_REPO=https://github.com/zfsonlinux/zfs.git
|
||||||
ENV ZFS_COMMIT=zfs-${VERSION}
|
ENV ZFS_COMMIT=zfs-${VERSION}
|
||||||
@ -40,16 +32,10 @@ RUN git clone ${ZFS_REPO} && \
|
|||||||
cd zfs && \
|
cd zfs && \
|
||||||
git checkout ${ZFS_COMMIT}
|
git checkout ${ZFS_COMMIT}
|
||||||
|
|
||||||
WORKDIR /spl
|
|
||||||
RUN ./autogen.sh && \
|
|
||||||
./configure && \
|
|
||||||
cd module && \
|
|
||||||
make && \
|
|
||||||
make install
|
|
||||||
|
|
||||||
WORKDIR /zfs
|
WORKDIR /zfs
|
||||||
RUN ./autogen.sh && \
|
RUN ./autogen.sh && \
|
||||||
./configure --with-spl=/spl && \
|
./configure && \
|
||||||
|
./scripts/make_gitrev.sh && \
|
||||||
cd module && \
|
cd module && \
|
||||||
make -j "$(getconf _NPROCESSORS_ONLN)" && \
|
make -j "$(getconf _NPROCESSORS_ONLN)" && \
|
||||||
make install
|
make install
|
||||||
|
Loading…
Reference in New Issue
Block a user