# Mender state script for debian

**URL:** https://hub.mender.io/t/mender-state-script-for-debian/1859
**Category:** General Discussions
**Tags:** state-scripts
**Created:** [April 29, 2020, 9:34am UTC](https://hub.mender.io/t/mender-state-script-for-debian/1859 "2020-04-29T09:34:07Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![genedupre](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/genedupre/32/289_2.png) [@genedupre](https://hub.mender.io/u/genedupre)
#### Post date: [April 30, 2020, 12:32pm UTC](https://hub.mender.io/t/mender-state-script-for-debian/1859/4 "2020-04-30T12:32:55Z")

</div>

meant as a follow up,

after using the right state script for rootfs usage, the scripts where still not working, this however is because i used the mender 2.0.0 overlay to add the state scripts.  
mender expects in /etc/mender/scripts also a file called ‘version’ as noted [here](https://hub.mender.io/t/version-of-state-scripts-in-etc-mender/894), this file is not added when using the mender convert overlay as i did, after adding this everything works fine.

example ↓  
 ![version](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/ed1ddd8d9091ad47aa0bdd0fffc155989488f781.png)

---

_[View the full topic](https://hub.mender.io/t/mender-state-script-for-debian/1859)._
