I would like to modify one file (13MB file) of the rootfs (mender artifact) after the Yocto build.
The possible easy option is to use the provided mender-artifact tool to modify the file with cp command.
The above method is clear to me however, I’m confused with the manifest file.
Whether mender-artifact tool will automatically update the manifest with the updated SHA256 hash of the “<rootfs>.ext4”?
It is not clear for me from the examples that, what happens to the manifest once, we changed any rootfs file.
Sorry for the confusion. My use case is different. The modification which I mentioned is not happening on the same build machine. It is happening on another machine where the file needs to be copied into the .mender artifact.
Hence, mender-artifact tools suits for my case.
Could you please let me know whether mender-artifact tool automatically take care of the manifest file present inside the .mender artifact?
I have tried to untar and checked the manifest before and after the update (with cp command). The rootfs sha256 hash is changing. However, I need a confirmation that our expection is correct
@dellgreen - Just to clarify, I have no signing in place. I’m just copy one file into the rootfs (.mender). However, the .ext4 SHA256 hash will change as per my knowledge.