Skip to content

Commit

Permalink
docker: use backports for zfsutils
Browse files Browse the repository at this point in the history
The userspace part of zfs seems to have a major breakage between 2.1 and 2.2
releases. This means that userspace utilities <= 2.1 cannot interact in a
meaningful way with a 2.2 ZFS kmod.

This is causing issues with users that already have ZFS 2.2, which may get even
more severe in the future, as Ubuntu 24.04 will ship with ZFS 2.2 out of the
box.

To fix the issue, install the zfs userspace utilities from debian backports:
they seem to be reasonably recent.

Tested with versions from ZFS 2.2 to 0.7.

Signed-off-by: Moritz Wanzenböck <[email protected]>
  • Loading branch information
WanzenBug committed Apr 3, 2024
1 parent 21a579a commit 025a367
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dockerfiles/piraeus-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get install -y gnupg2 && \
sed -i -r 's/^Components: (.*)$/Components: \1 contrib/' /etc/apt/sources.list.d/debian.sources && \
echo "deb http://packages.linbit.com/public" $DISTRO "misc" > /etc/apt/sources.list.d/linbit.list && \
echo "deb http://packages.linbit.com/public/staging" $DISTRO "misc" >> /etc/apt/sources.list.d/linbit.list && \
echo "deb http://deb.debian.org/debian $DISTRO-backports contrib" > /etc/apt/sources.list.d/backports.list && \
apt-get update && \
# Install useful utilities and general dependencies
apt-get install -y udev drbd-utils jq net-tools iputils-ping iproute2 dnsutils netcat-traditional sysstat curl util-linux && \
Expand Down Expand Up @@ -42,7 +43,7 @@ RUN apt-get install -y gnupg2 && \
# zstd: used with thin-send-recv to send snapshots to another LINSTOR cluster \
zstd \
# zfsutils-linux: for zfs storage pools \
zfsutils-linux \
zfsutils-linux/$DISTRO-backports \
&& \
# remove udev, no need for it in the container \
apt-get remove -y udev && \
Expand Down

0 comments on commit 025a367

Please sign in to comment.