Forgot to update but its solved
The rsync mostly succeeds, set -e treats any non‑zero exit code as a fatal error and stops the script.
rsync often returns exit code 23
So adding
rsync -avz /var/ /zdata/var/ || true
Makes it work. I will post the...
You are right. Thank you for the input. I will definitely try your debugging in my script. I havent had a chance to test it yet because I am currently trying to resolve a unmet dependency problem with xfce4 chromium/firefox-esr for my offline...
O
OK so the answer was :
I build a custom bootable iso from Proxmox Automated Installation, with more packages, and a first-boot hook that does some stuff.
And :
The first-boot hook fails silently when doing this :
zfs create zdata/var
rsync...