I'm trying to make an image for a device that includes a NetworkManager connection for an LTE modem.
I've created a config file for the connection:
[connection] id=modem uuid=4b5f7f0b-1c58-4fa3-bc3c-45a3e3d329d8 type=gsm interface-name=ttyACM0 permissions= [gsm] apn=XXXXXXXXXXXXX number=XXXXXXXXXXXXxx [ipv4] dns-search= method=auto [ipv6] addr-gen-mode=stable-privacy dns-search= method=auto
and placed this at /etc/NetworkManager/system-connections/modem which is what the normal nmcli con add command would do. However when booting up this image, NetworkManager shows no connections:
root@bionic-armhf:~# nmcli c show NAME UUID TYPE DEVICE
I've also tried restarting the service.
Is there something I'm missing? Is there a way to do this without manually creating the connection or creating it via a startup script? Ideally it would be done all through config files.