How can I edit the mender artifact, which I’ve built with mender

How can I edit the mender artifact, which I’ve built with mender:
sudo ./mender-artifact cat XXXX-md2.0-1.0.mender:/etc/rc.local
Model: (file) lid partition table:
Disk /home/pob/mender-artifact/XXXX-plc-md2.0-1.0.mender: 460991s
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

It always shows Partition Table unknown

Moved this to a separate topic.

Which mender-artifact version are you using?

Did a quick test run using the latest version,

$ mender-artifact -version
mender-artifact version 3.0.0
$ mender-artifact cat artifact.mender:/etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0

And I can not see any problems. How do you create the Mender Artifact?

Thank you mirzak.

It was my fault, I used the prebuilt mender-artifact, it is on version 2.4.X.

I got it to work, by following the instruction on this documentation site:
“Compiling mender-artifact”
https://docs.mender.io/2.0/artifacts/modifying-a-mender-artifact

We do also have a pre-built mender-artifact version 3.0.0, and it can be found here,