# How to set custom systemd network configuration files search path in yocto based linux image with meta-mender

**URL:** <https://hub.mender.io/t/how-to-set-custom-systemd-network-configuration-files-search-path-in-yocto-based-linux-image-with-meta-mender/2161>\
**Category:** General Discussions\
**Created:** [July 7, 2020, 9:02am UTC](https://hub.mender.io/t/how-to-set-custom-systemd-network-configuration-files-search-path-in-yocto-based-linux-image-with-meta-mender/2161 "2020-07-07T09:02:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anishmonachan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/anishmonachan/32/802_2.png) [@anishmonachan](https://hub.mender.io/u/anishmonachan)\
**Post date:** [July 7, 2020, 9:02am UTC](https://hub.mender.io/t/how-to-set-custom-systemd-network-configuration-files-search-path-in-yocto-based-linux-image-with-meta-mender/2161/1 "2020-07-07T09:02:20Z")

</div>

I’ve a custom yocto based linux image with meta-mender. I have a use case where I want to set a systemd-network configuration files in a user defined path. So that I can avoid losing the custom .network file in default path /etc/systemd/network during every update with mender.

By default the path is /etc/systemd/network/example.network. Is there any possibility to keep my example.network config file in a persistant folder /data/systemd/network/example.network and to make the systemd to look for .network files in this custom path.

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [July 7, 2020, 10:29am UTC](https://hub.mender.io/t/how-to-set-custom-systemd-network-configuration-files-search-path-in-yocto-based-linux-image-with-meta-mender/2161/2 "2020-07-07T10:29:09Z")

</div>

One option could be to add you own systemd service file to copy/symlink the .network file from your persistent directory to the volatile networkd /run/systemd/network directory on boot
