is there any way to build the snapd with lxd?
Yes Set the build provider to lxd:
- command-line argument
--provider=<provider-name>
- environmental variable
SNAPCRAFT_BUILD_ENVIRONMENT=<provider-name>
- command-line argument
--use-lxd
- snap configuration
snap set snapcraft provider=<provider-name>