From: Angelo Compagnucci <angelo@amarulasolutions.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/5] package/mender: adding artifact_info file
Date: Tue, 5 Feb 2019 10:43:11 +0100 [thread overview]
Message-ID: <1549359793-12666-4-git-send-email-angelo@amarulasolutions.com> (raw)
In-Reply-To: <1549359793-12666-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 655342c..3f9518e 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 -sf /var/run/mender $(TARGET_DIR)/var/lib/mender
endef
--
2.7.4
next prev parent reply other threads:[~2019-02-05 9:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-05 9:43 [Buildroot] [PATCH 0/5] Latest fixings to Mender Angelo Compagnucci
2019-02-05 9:43 ` [Buildroot] [PATCH 1/5] package/mender: adding a writable location Angelo Compagnucci
2019-02-05 10:39 ` Yann E. MORIN
2019-02-05 9:43 ` [Buildroot] [PATCH 2/5] package/mender: adding systemv init file Angelo Compagnucci
2019-02-05 9:43 ` Angelo Compagnucci [this message]
2019-02-05 9:43 ` [Buildroot] [PATCH 4/5] package/mender: adding device_type file Angelo Compagnucci
2019-02-05 9:43 ` [Buildroot] [PATCH 5/5] package/mender: adding a readme file Angelo Compagnucci
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=1549359793-12666-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox