/var/lib not inherited from template

I created a Ubuntu template from unman’s template distribution. I created a VM based on the template, and it works as expected, other than snap applications, like firefox. (Ubuntu 22 now uses snap for many applications)

From within the template, I can run firefox, but from the vm it fails. It reports that the firefox app isn’t installed; although it in fact is.

I notice that in the template, /var/lib/snapd/apparmor contains a directory called profiles. In the profiles directory are the normal firefox files

but, in the VM, the /var/lib/snapd/apparmor directory does not contain the profiles directory. I don’t know, but it would seem that the error about firefox not being installed may be that the profile files are missing.

I’ve stopped the template, and restarted the vm. No change

Why is the /var/lib directory not inherited by the vm when it starts?

Thanks.