# Rootfs update module - keep existing file from active partition in new partition

**URL:** <https://hub.mender.io/t/rootfs-update-module-keep-existing-file-from-active-partition-in-new-partition/2465>\
**Category:** General Discussions\
**Tags:** debian, raspberrypi-cm3\
**Created:** [September 21, 2020, 3:33pm UTC](https://hub.mender.io/t/rootfs-update-module-keep-existing-file-from-active-partition-in-new-partition/2465 "2020-09-21T15:33:54Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![PFGO](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@PFGO](https://hub.mender.io/u/PFGO)\
**Post date:** [September 24, 2020, 8:00am UTC](https://hub.mender.io/t/rootfs-update-module-keep-existing-file-from-active-partition-in-new-partition/2465/13 "2020-09-24T08:00:41Z")

</div>

OK I tried it but I get the following Error:

```
--script /home/username/build/mender-convert/state-scripts/Download_Enter_00
	scripter: unsupported script state: Download

```

**Edit:**  
Ok, I’ve found following information in the code:

> <https://github.com/mendersoftware/mender-artifact/blob/master/artifact/scripter.go>

```
var availableScriptType = map[string]bool{
	// Idle, Sync and Download scripts are part of rootfs and can not
	// be a part of the artifact itself; Leaving below for refference...
	//"Idle": true,
	//"Sync": true,
	//"Download": true,
	"ArtifactInstall": true,
	"ArtifactReboot": true,
	"ArtifactCommit": true,
	"ArtifactRollback": true,
	"ArtifactRollbackReboot": true,
	"ArtifactFailure": true,
}

```

And also I’ve found the information in the documentation for version 2.3:  
[https://docs.mender.io/2.3/artifacts/state-scripts#root-file-system-and-artifact-scripts](https://docs.mender.io/2.3/artifacts/state-scripts#root-file-system-and-artifact-scripts)

And it also has been answered here:

> [@Some State Scripts cannot be called](https://hub.mender.io/t/some-state-scripts-cannot-be-called/2048/2):
>
> Not all scripts should be in /etc/mender/scripts, please see the following section in the docs for more information [https://docs.mender.io/2.3/artifacts/state-scripts#root-file-system-and-artifact-scripts](https://docs.mender.io/2.3/artifacts/state-scripts#root-file-system-and-artifact-scripts)

Just for information 🙂

---

_[View the full topic](https://hub.mender.io/t/rootfs-update-module-keep-existing-file-from-active-partition-in-new-partition/2465)._
