#!/bin/bash #define zfs version zfsver="zfs-2.0.3" #creating building directory mkdir /tmp/zfs-builds && cd "$_" rm -rf /tmp/zfs-builds/build-zfs.sh apt-get download linux-headers-current-rockchip64 git clone -b $zfsver https://github.com/openzfs/zfs.git $zfsver-$(uname -r) #create file to execute inside container echo "creating ZFS build script to be executed inside container" cat > /tmp/zfs-builds/build-zfs.sh <