Before the delete it gets certain aspects of the image configuration: profiles, hwaddresses, which it then tries to restore during or after the launch.
The native (lxd/incus) rebuild preserves instance configuration, so there is no need for lxops to attempt to do this.
All lxops has to do is reconfigure the instance by applying the cloud-init files after the rebuild.
This is limited to containers that are launched from images. It probably does not work for an instance that is copied from another instance snapshot.
lxops rebuild should use lxd/incus rebuild.
lxops rebuild does the following:
Before the delete it gets certain aspects of the image configuration: profiles, hwaddresses, which it then tries to restore during or after the launch.
The native (lxd/incus) rebuild preserves instance configuration, so there is no need for lxops to attempt to do this. All lxops has to do is reconfigure the instance by applying the cloud-init files after the rebuild.
This is limited to containers that are launched from images. It probably does not work for an instance that is copied from another instance snapshot.