I want to use mender-convert to build a custom raspberrypi-3 image. The image is based on raspbian and will contain the azure iot edge runtime.
My challenge is to make azure iot edge configuration persistend over OS Updates. The configuration is in folder /etc/aziot and contains multiple files.
My idea to do this is to use an overlayFS which mounts /data/aziot over /etc/aziot. This can be done by an mender-convert hook which appends a line to /etc/fstab. Or by an overlay which adds an systemd-service to mount the overlayfs.
Did anybody here something similar? Which solution would you prefer and why? Any other ideas to solve the issue?
Thanks in advance and best regards