Persistent /var

I have configured usb external storage using extroot, and I'd like to have persistent /var directory. I've tried adding entry to /etc/config/fstab and replacing symlink with regular directory but this results in my router being softbricked.

How can I replace /var with regular directory or a mount?

That is a build-time decision:

I build an x86 image with TARGET_ROOTFS_PERSIST_VAR set to y but still the /var partition is reset every reboot.
I'm running an pc-engines apu4d4 with a USB flash drive.
Could someone please point me into the right direction.

Are you building using the image builder? I may be having the same problem. When building the image directly /var is a directory, but with the image builder it is always a symbolic link.

I gave up on trying, it seemed to cumbersome to handle this.
Someone somewhere once pointed out that this might be fixable by just defining where the runtime like podman or docker stores its data and putting this path onto a bigger + persistant + writeable storage.