package/mender: adding artifact_info file

In order to have the mender package working out of the box, the
/etc/mender/artifact_info should be present and should contain a
valid artifact_name value.
This patch provides a default file that can be overridden easily
from an overlay.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Acked-by: <aduskett@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Angelo Compagnucci 2019-02-05 11:49:57 +01:00 committed by Peter Korsgaard
parent f88947c2fe
commit 99ed53cc2b
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
artifact_name=BUILDROOT_ARTIFACT

View File

@ -50,6 +50,9 @@ define MENDER_INSTALL_CONFIG_FILES
$(TARGET_DIR)/usr/share/mender/inventory/mender-inventory-$(f)
)
$(INSTALL) -D -m 0755 package/mender/artifact_info \
$(TARGET_DIR)/etc/mender/artifact_info
ln -snf /var/run/mender $(TARGET_DIR)/var/lib/mender
endef