From 025a367619632fa104d163a62dd6d9cb2f34f708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Wanzenb=C3=B6ck?= Date: Wed, 3 Apr 2024 15:48:40 +0200 Subject: [PATCH] docker: use backports for zfsutils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- dockerfiles/piraeus-server/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockerfiles/piraeus-server/Dockerfile b/dockerfiles/piraeus-server/Dockerfile index 6805a15..0298d8a 100644 --- a/dockerfiles/piraeus-server/Dockerfile +++ b/dockerfiles/piraeus-server/Dockerfile @@ -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 && \ @@ -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 && \