Create folder and write to /etc directory

Hi, I want to create a snap for netmaker client This snap adds config files in /etc/netclient/ directory and creates a executable file in /sbin/ directory and starts up a systemd service.

In order to do this, i tried giving access to /etc/netclient directory using sytem-files interface for Ubuntu Core system. But It always returns read only directory. How can I achieve it in another way?

you’d use a layout in this case and re-map /etc/netclient to $SNAP_COMMON/netcient