#!/usr/bin/env bash

cd zfs-scripts/ && sh ./zfs.sh -u
sh ./zfs.sh -u

echo "deb http://pkgmaster.devuan.org/merged beowulf-backports main contrib non-free" >>/etc/apt/sources.list.d/beowulf-backports.list

apt-get update

# openrc is broken by zfsutils-linux
apt-get install -y sysv-rc

DEBIAN_FRONTEND=noninteractive apt-get install -y -t beowulf-backports zfs-dkms spl-dkms zfsutils-linux

modprobe -v zfs

zfs --version
