#!/bin/bash
set -e
set -x
for petc in $(echo /*/etc/pacman.conf); do
builder=$(echo "$petc" | cut -f2 -d '/')
echo $builder
time tar --xattrs --acls -C / --zstd -cf $builder.tar.zst $builder
mv $builder.tar.zst /mnt/nfs/dist/armlfs-$builder.tar.zst
done