You can test it by uploading any file to the releases page. The hosted Mender server and any on-premise server installation, can generate application update Artifacts automatically using the single file You can also see how simple it is to write a custom Update Module.Īlso note that most of the Update Modules come with a script to simplify the Artifact creation, but generally these are wrappers around mender-artifact utility to hide the complexity and make it easy to generate artifacts. You can see the above example in the single file Update Module. ![]() Please note also, that the payload files must use the name specified here. Please note that, single-file is both the name of the Update Module and the Artifact type. ![]() The payload files we created earlier are included, and the resulting file nder holds the Artifact. The name of the Artifact is declared as updated-authorized_keys-1.0, we set the name of the software we are installing to authorized_keys, and the version is set to 1.0. The Artifact created will be compatible with the raspberrypi4 device type, although you can specify multiple device types if needed. Note specifically that in this case we are creating a module-image, using the single file Update Module. We can now create the Artifact using mender-artifact by running the following command: mender-artifact write module-image \ We first store the path to the destination directory and file into two separate files, for packaging purposes: echo /home/pi/.ssh > dest_dir # store the destination target directoryĮcho authorized_keys > filename # store the filename of the file we want to update Create an application update ArtifactĬreating an Artifact takes a different form in the case of application updates.įor example, assume that you want copy a new authorized_keys file to the /home/pi/.sshĭirectory on your devices. Use the Mender Web UI to see which rootfs-image version is currently installed on the device, and which Artifact was the last one to be installed. -o: specifies the path to the output file.-software-version specifies the version string for the rootfs-image. ![]()
0 Comments
Leave a Reply. |