Mender artifact command fails to copy the key to disk image

Hi Mender team,

We are using i.MX8M Plus technexion EVK where we are following below link:

While running mender-artifact command for copying the private key to sdimg, we are facing below error:

**debugfs: error running command: “cd mender\nwrite /tmp/mender-artifact-install162466796/1private.key mender-agent.pem\nclose”, err: **
do_write_internal: Permission denied while opening “/tmp/mender-artifact-install162466796/1private.key” to copy
write: Permission denied

Can you please help us identify the root cause of this issue?

Regards,
Kunal

Hi Mender Team,

Just to add I am using latest mender version and downloaded the utility directly (not compiled from source).

Regards,
Kunal

Hi Mender Team,

I was able to solve the issue. It was a permission issue. Meanwhile, can anyone guide me on how to install multile files to sdimg by running mender-artifact command only once?

Regards,
Kunal

Hi, @KunalK ,
I might be facing a similar permission issue.
how did you solve that?
Thank you