# Update underlying linux filesystem using .cwe

**URL:** <https://forum.legato.io/t/update-underlying-linux-filesystem-using-cwe/4111>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [February 13, 2019, 6:24am UTC](https://forum.legato.io/t/update-underlying-linux-filesystem-using-cwe/4111 "2019-02-13T06:24:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.legato.io/u/davidc)\
**Post date:** [February 13, 2019, 6:24am UTC](https://forum.legato.io/t/update-underlying-linux-filesystem-using-cwe/4111/1 "2019-02-13T06:24:42Z")

</div>

Hiya,

Is it possible to add, replace or remove files from the underlying linux filesystem using a .cwe file?

Ideally I’d like to build a .cwe file for my customized legato bundle, a second .cwe to update the fileesystem and bundle these multiple .cwe into a .spk so that I can install a ‘system’ in one operation.

If this is possible, how is the filesystem modifying cwe constructed?

ciao, Dave

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.legato.io/u/lotam)\
**Post date:** [February 15, 2019, 9:01am UTC](https://forum.legato.io/t/update-underlying-linux-filesystem-using-cwe/4111/2 "2019-02-15T09:01:06Z")

</div>

Hi Dave,  
I think you can use swicwe tool to combine these .cwe (legato/linux FS/modem) into single .cwe/.spk so to install your complete system in one shot.

Link to the tool:  
[https://source.sierrawireless.com/resources/airprime/software/swicwe/](https://source.sierrawireless.com/resources/airprime/software/swicwe/)

However, per understanding, we cannot just modify/update single file from the Linux FS, it has to be complete image.

Hope it helps.  
Thx

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.legato.io/u/davidc)\
**Post date:** [February 17, 2019, 10:55am UTC](https://forum.legato.io/t/update-underlying-linux-filesystem-using-cwe/4111/3 "2019-02-17T10:55:22Z")

</div>

Hi @lotam,

Ta for that.

Yes, I would have liked to just update a couple of files in the filesystem as part of an install. But I can do it the long way.

Thanks, Dave
