From: Angelo Compagnucci <angelo@amarulasolutions.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 3/5] package/mender: adding artifact_info file
Date: Tue, 5 Feb 2019 11:23:46 +0100 [thread overview]
Message-ID: <1549362228-5731-4-git-send-email-angelo@amarulasolutions.com> (raw)
In-Reply-To: <1549362228-5731-1-git-send-email-angelo@amarulasolutions.com>
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>
---
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 0000000..1c84b08
--- /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 dc4a73b..0377270 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
--
2.7.4
next prev parent reply other threads:[~2019-02-05 10:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-05 10:23 [Buildroot] [PATCH v2 0/5] Latest fixings to Mender Angelo Compagnucci
2019-02-05 10:23 ` [Buildroot] [PATCH v2 1/5] package/mender: adding a writable location Angelo Compagnucci
2019-02-05 10:30 ` Adam Duskett
2019-02-05 10:23 ` [Buildroot] [PATCH v2 2/5] package/mender: adding systemv init file Angelo Compagnucci
2019-02-05 10:29 ` Adam Duskett
2019-02-05 10:40 ` Titouan Christophe
2019-02-05 10:23 ` Angelo Compagnucci [this message]
2019-02-05 10:30 ` [Buildroot] [PATCH v2 3/5] package/mender: adding artifact_info file Adam Duskett
2019-02-05 10:23 ` [Buildroot] [PATCH v2 4/5] package/mender: adding device_type file Angelo Compagnucci
2019-02-05 10:29 ` Adam Duskett
2019-02-05 10:23 ` [Buildroot] [PATCH v2 5/5] package/mender: adding a readme file Angelo Compagnucci
2019-02-05 10:28 ` Adam Duskett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1549362228-5731-4-git-send-email-angelo@amarulasolutions.com \
--to=angelo@amarulasolutions.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.