From 387fadbf8ddebbdbb1b1f0a27ab22c5f94d623cc Mon Sep 17 00:00:00 2001 From: Angelo Compagnucci Date: Tue, 5 Feb 2019 11:49:58 +0100 Subject: [PATCH] package/mender: adding device_type file In order to have the mender package working out of the box, the /etc/mender/device_type should be present and should contain a valid device_type 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/device_type | 1 + package/mender/mender.mk | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 package/mender/device_type diff --git a/package/mender/device_type b/package/mender/device_type new file mode 100644 index 0000000000..a097ef2b3a --- /dev/null +++ b/package/mender/device_type @@ -0,0 +1 @@ +device_type=BUILDROOT_DEVICE diff --git a/package/mender/mender.mk b/package/mender/mender.mk index 0377270a43..0d719382f8 100644 --- a/package/mender/mender.mk +++ b/package/mender/mender.mk @@ -53,6 +53,9 @@ define MENDER_INSTALL_CONFIG_FILES $(INSTALL) -D -m 0755 package/mender/artifact_info \ $(TARGET_DIR)/etc/mender/artifact_info + $(INSTALL) -D -m 0755 package/mender/device_type \ + $(TARGET_DIR)/etc/mender/device_type + ln -snf /var/run/mender $(TARGET_DIR)/var/lib/mender endef -- 2.30.2