Clear /var
We should come to a state, where /var is empty in the image and is setup by systemd-tmpfiles.
Only the contents of /var/lib/dpkg are preserved somewhere in /usr, proper symlinks created and dpkg config with the correct db location setup.
Edited by Bastian Blank