# Mender-artifact hangs

**URL:** https://hub.mender.io/t/mender-artifact-hangs/752
**Category:** General Discussions
**Tags:** mender-artifact
**Created:** [June 25, 2019, 5:41pm UTC](https://hub.mender.io/t/mender-artifact-hangs/752 "2019-06-25T17:41:45Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![ster](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ster/32/282_2.png) [@ster](https://hub.mender.io/u/ster)
#### Post date: [June 27, 2019, 9:49am UTC](https://hub.mender.io/t/mender-artifact-hangs/752/4 "2019-06-27T09:49:45Z")

</div>

> As one idea, would it help your workflow if cp / install took several files that could be copied in one operation?

Yes It would help a bit, but according to `mender-artifact cp --help`, it doesn’t seem to support copying multiple files in one run. Please correct me if I’m wrong.

Anyway, as I also need to add Artifact state scripts to already created mender artifacts and `mender-artifact` doesn’t support this, I ended up with the following workflow as the most time efficient:

1. run mender-convert and kill it as soon as it starts creating .mender file
2. mount .sdimg and copy all files inside (mender.config, identity, inventiry, client state-scripts)
3. mount .ext4 and perform the same copying
4. create mender artifact from .ext4, adding artifact state scripts using `mender-artifact write rootfs-image .... --script <artifactScript>`

---

_[View the full topic](https://hub.mender.io/t/mender-artifact-hangs/752)._
