# OverlayFS configuration

**URL:** <https://hub.mender.io/t/overlayfs-configuration/5914>\
**Category:** Debian family\
**Tags:** raspberry-pi-3\
**Created:** [June 13, 2023, 10:35am UTC](https://hub.mender.io/t/overlayfs-configuration/5914 "2023-06-13T10:35:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruben](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ruben/32/565_2.png) [@ruben](https://hub.mender.io/u/ruben)\
**Post date:** [June 13, 2023, 10:35am UTC](https://hub.mender.io/t/overlayfs-configuration/5914/1 "2023-06-13T10:35:45Z")

</div>

Hi all,

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  
Ruben

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 13, 2023, 2:40pm UTC](https://hub.mender.io/t/overlayfs-configuration/5914/2 "2023-06-13T14:40:47Z")

</div>

Hi @ruben,

No hard opinion, but mounting subdirectories from `/data` to additional locations is already the strategy Mender uses itself, and it does not require additional pieces of software, so I’d go with that unless you have additional requirements in favor of an overlayFS. In a nutshell, KISS (Keep It Simple and Stupid).

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ruben/32/565_2.png) [@ruben](https://hub.mender.io/u/ruben)\
**Post date:** [June 22, 2023, 5:10am UTC](https://hub.mender.io/t/overlayfs-configuration/5914/3 "2023-06-22T05:10:32Z")

</div>

Thanks @TheYoctoJester for your answer!
