# Custom Mender Identiy with mender-convert

**URL:** <https://hub.mender.io/t/custom-mender-identiy-with-mender-convert/987>\
**Category:** General Discussions\
**Created:** [September 5, 2019, 12:16pm UTC](https://hub.mender.io/t/custom-mender-identiy-with-mender-convert/987 "2019-09-05T12:16:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [September 6, 2019, 12:25pm UTC](https://hub.mender.io/t/custom-mender-identiy-with-mender-convert/987/4 "2019-09-06T12:25:15Z")

</div>

> [@simschla](#):
>
> Therefore it feels like a bug that the mender-device-identity script is overwritten by mender-convert if it is already present in the source-image.

I might lean to agreeing to this, but I believe that there is a bigger problem with the current “model”. Yes one could simply add a check not to install files if they are already there. But this would then need to apply to “more files” then `mender-device-identity`, and it quickly gets a out of hand.

This is something that would be quite easy to accomplish using the upcoming mender-convert tool (which received an overhaul for reasons like this),

> [@New iteration of the mender-convert tool](https://hub.mender.io/t/new-iteration-of-the-mender-convert-tool/824):
>
> Hi, As you might be aware of we have a tool we call mender-convert to enable support for Mender on binary distributions. We are happy that this has worked out, enabling people to securely update their devices on non-Yocto devices. Even though we are happy with the functionality of the current tool, there are a couple drawbacks in the current design of the tool, which we want to improve. We looked hard at the current code and decided, to achieve the desired design we would need to do a re-wri…

Here a “MIDDLE” step is added (which IMO would be the correct location to do this, not BEFORE and AFTER), where one is able to provide rootfs overlays and this would be the location to provide e.g a custom `mender-device-identity` file.

---

_[View the full topic](https://hub.mender.io/t/custom-mender-identiy-with-mender-convert/987)._
