lueschem / edi-cl

This repository contains an edi project configuration for Compulab embedded devices.
https://www.get-edi.io
Other
10 stars 2 forks source link

postprocessing_commands/rootfs/lxd2rootfs contains mender logic #10

Closed ghost closed 3 years ago

ghost commented 3 years ago

Add artifact information to rootfs.

mkdir -p "${LXD_ROOTFS}/etc/mender/" echo "artifact_name=${ARTIFACT_NAME}" > "${LXD_ROOTFS}/etc/mender/artifact_info"

Should be moved to plugins/playbooks/board_support/roles/mender/tasks/main.yml

ghost commented 3 years ago

It seems like mender artifact requires BUILD_TIMESTAMP which is indeed created after the playbooks/board_support is run.

ghost commented 3 years ago

Maybe a better solution is to move it to "75_mender_artifact"

ghost commented 3 years ago

The solution is not directly visible; if moved to an ansible playbook, and using host: localhost, connection: local, we don't gain a lot as after build there is no caching anyway.