sets2rootfs downloads cksum file for NetBSD/OpenBSD sets, checks the checksums and unpacks downloaded sets, thus creating a template for rootfs of the system.
# sets2rootfs -c /tmp/OpenBSD-7.5.cache -s OpenBSD -r 7.5 -d /var/chroots/OpenBSD-7.5
# sets2rootfs -c /tmp/NetBSD-10.cache -d /var/chroots/NetBSD-10
# sets2rootfs -c /tmp/NetBSD.cache -d /var/chroots/NetBSD
# sets2rootfs -c /tmp/NetBSD.cache -d /var/chroots/NetBSD-20240513 \\
-u http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/latest/riscv-riscv64/binary/sets/MD5
# env FTP_CALL='wget -O' CKSUM_CALL='digest' sets2rootfs \\
-c /tmp/OpenBSD-7.5.cache -s OpenBSD -mamd64 -r 7.5 \\
-d /tmp/rootfs-OpenBSD-7.5
Written by Aleksey Cheusov <vle@gmx.net>