From 99ed53cc2b52e68d322f2154a3c9b9af335c0c6b Mon Sep 17 00:00:00 2001 From: Angelo Compagnucci Date: Tue, 5 Feb 2019 11:49:57 +0100 Subject: [PATCH] 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 Acked-by: Signed-off-by: Peter Korsgaard --- package/mender/artifact_info | 1 + package/mender/mender.mk | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 package/mender/artifact_info diff --git a/package/mender/artifact_info b/package/mender/artifact_info new file mode 100644 index 0000000000..1c84b088d0 --- /dev/null +++ b/package/mender/artifact_info @@ -0,0 +1 @@ +artifact_name=BUILDROOT_ARTIFACT diff --git a/package/mender/mender.mk b/package/mender/mender.mk index dc4a73b0f3..0377270a43 100644 --- a/package/mender/mender.mk +++ b/package/mender/mender.mk @@ -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