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>
2019.02.x
Angelo Compagnucci 2019-02-15 22:42:53 +01:00 committed by Thomas Petazzoni
parent 8f9009e5bd
commit dd97b055b1
1 changed files with 1 additions and 0 deletions

View File

@ -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