aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Angelo Compagnucci <angelo.compagnucci@gmail.com>2019-02-15 22:42:53 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-02-15 22:58:20 +0100
commitdd97b055b11b8708438974555d1746a18924ceba (patch)
treee01c8b8eae0fa05d4da8e15f9c99a3db10f97da7
parent8f9009e5bd14fac29038bf6728c1e019d2b2ffc7 (diff)
downloadbuildroot-dd97b055b11b8708438974555d1746a18924ceba.tar.gz
buildroot-dd97b055b11b8708438974555d1746a18924ceba.tar.bz2
package/mender: fix missing /var/lib
Mender needs /var/lib directory to be available: on some configurations /var/lib is not available and thus the mender package installation fails. This patch does a mkdir to ensure the /var/lib directory is always available. Fixes: http://autobuild.buildroot.net/results/d2237083a13ab7688dd2b6dc8dbcd4226ed5651a/ Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/mender/mender.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/mender/mender.mk b/package/mender/mender.mk
index cd18c0055a..07f6e5e5f9 100644
--- a/package/mender/mender.mk
+++ b/package/mender/mender.mk
@@ -57,6 +57,7 @@ define MENDER_INSTALL_CONFIG_FILES
$(INSTALL) -D -m 0755 package/mender/device_type \
$(TARGET_DIR)/etc/mender/device_type
+ mkdir -p $(TARGET_DIR)/var/lib
ln -snf /var/run/mender $(TARGET_DIR)/var/lib/mender
endef