Hi, I have followed this method using the exact build referenced in this method, attempting to create a new artefact - so far i am unable to create the artifact successfully.
I have made the required files executable, but cant figure out what is going wrong at this stage;
In my system, i am seeing the following;
cdx@cdx-VirtualBox:~/Desktop/Mender_Trials$ ./directory-artifact-gen -n {ARTIFACT_NAME} -t {DEVICE_TYPE} -d {DEST_DIR} -o {OUTPUT_PATH} ${SRC_DIR}
./directory-artifact-gen: line 32: hash: mender-artifact: not found
I attempted this on a new installation of Ubuntu 18.04.03
The error indicates that directory-artifact-gen does not find mender-artifact.
Is directory-artifact-gen and mender-artifact in the same directory? If not, could you copy in the mender-artifact binary into the same directory where you are running directory-artifact-gen?
I have updated the instructions to also copy mender-artifact into a system directory in “Configure your Mender server”, and with this the binaries should not need to be in the same directory.
directory-artifact-gen and mender-artifact were in the same directory during my previous attempts.
Thank you for the updated method, copying the mender-artifact into the system folder has resolved my problem, i can now successfully generate an artifact.