Hi, in my setup I have raw file served as storage backend for LXD. The file is located on an NFS mount point. The problem is when NFS mount happens before LXD service starts everything goes well otherwise the system will fail to boot. It seems to me that the order of NFS mount and LXD service is random. I have come up an idea to make sure the NFS mount happens before LXD service.
The idea is that if I mount NFS through systemd instead of fstab, I can write the NFS mount as an required service for LXD service. However, when I open the LXD service configuration file, the first line says ‘Auto-generated, DO NOT EDIT’ . I am wondering if it means that the configuration will be overwritten at some point if the LXD snap get refreshed ? If that is the case, can I avoid it by disabling the snap autorefresh ? Or there is other good way to deal with this ?
Any suggestion would be appreciated !!!