i want to build many customized images based on installing a set of specific packages. i have done this kind of thing for VMs and embedded boards of a few architectures before. i plan to do this with and for containers. the way things have been done before was to use the packaging system’s installer with a target directory option, such as root=, to build a base system. this would be done outside of a container. then the container would be configured to use that base system as its rootfs. the container would be started to run a script to install the remaining packages, acquired and installed locally, if present in the local package cache, or over the network as needed.
what i would like to know is what considerations i might need to make to do this with lxd. if i have my own rootfs (and nothing more) for a system container, what more would i need to do this with lxd?