# Update Module and Yocto

**URL:** <https://hub.mender.io/t/update-module-and-yocto/2121>\
**Category:** General Discussions\
**Created:** [June 29, 2020, 5:00pm UTC](https://hub.mender.io/t/update-module-and-yocto/2121 "2020-06-29T17:00:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Austriker](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/austriker/32/511_2.png) [@Austriker](https://hub.mender.io/u/Austriker)\
**Post date:** [June 29, 2020, 5:00pm UTC](https://hub.mender.io/t/update-module-and-yocto/2121/1 "2020-06-29T17:00:35Z")

</div>

Hi,

We use mender and yocto to generate our complete image but each updates are large to deploy through 4G. Our application is located in a /opt/ folder.  
Is it possible to use the directory update module to make some application updates in between large image updates without any conflicts ?

Best regards

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [June 30, 2020, 8:37am UTC](https://hub.mender.io/t/update-module-and-yocto/2121/2 "2020-06-30T08:37:32Z")

</div>

Hi @Austriker 🙂

It depends on what you mean by ‘conflicts’. In general any update that is not a full-image update will result in a state, which is no longer fully tracked by the original image that you installed. If you mean, that this is possible with Mender, without breaking the device, then yes. Directory updates can also support rollback. Which means, that if something goes wrong during the install, the module will clean up after itself. Not though, that this also means, that no single update-artifact no longer contains the entire state of the system on your running device. For this a full image install is needed 🙂

Does this make sense?

[Directory update module](https://hub.mender.io/t/directory/325)

---

<div class="post-metadata">

**Author:** ![Austriker](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/austriker/32/511_2.png) [@Austriker](https://hub.mender.io/u/Austriker)\
**Post date:** [June 30, 2020, 11:57am UTC](https://hub.mender.io/t/update-module-and-yocto/2121/3 "2020-06-30T11:57:13Z")

</div>

Hi @oleorhagen

Yes I think it makes sense I wanted to be sure that the following scheme is possible:

- v1.0 image update
- v1.1 directory update
- v1.2 directory update
- v2.0 image update
- v2.X directory update

My app is contained in both directory and image update.

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [June 30, 2020, 12:03pm UTC](https://hub.mender.io/t/update-module-and-yocto/2121/4 "2020-06-30T12:03:37Z")

</div>

Yes, that will work just fine. However, if the directory updates are contained in the rootfs, then the `v2.0 image update` will overwrite your changes.
