should have working zfs 2.1.x now

This commit is contained in:
mitchejj
2023-12-23 12:40:07 -05:00
parent a1047710da
commit bf0534c2ce
2 changed files with 12 additions and 2 deletions

View File

@@ -26,8 +26,8 @@ FROM beaker AS beaker-zed
COPY --from=ghcr.io/mitchejj/zfs-kmods:39 *.rpm /tmp/zfs/
COPY ./zed /tmp
RUN rpm-ostree install /tmp/zfs/*.rpm && \
RUN /tmp/zfs-install.sh && \
cp /tmp/etc/sysctl.d/*.conf /etc/sysctl.d/
RUN rm -rf /tmp/* && \
RUN rm -rf /tmp/* /var/* && \
ostree container commit

10
zed/zfs-install.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -ouex pipefail
KERNEL="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
ls -lah /var
rpm-ostree install /tmp/zfs/*.rpm
depmod -A ${KERNEL}