package/mender: fix missing /var/lib
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>
Fri, 15 Feb 2019 21:42:53 +0000 (22:42 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 15 Feb 2019 21:58:20 +0000 (22:58 +0100)
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>
package/mender/mender.mk

index cd18c0055a99606b6a875b75481b7e3b9d64b83a..07f6e5e5f9dccd4c9bb6cdd16954d99f03cb86d1 100644 (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