Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/mender: fix missing /var/lib
@ 2019-02-15 21:42 Angelo Compagnucci
  2019-02-15 22:00 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Angelo Compagnucci @ 2019-02-15 21:42 UTC (permalink / raw)
  To: buildroot

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/02fde80f6b4bc57d5f2833bd979bf166252eab16
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
 package/mender/mender.mk | 1 +
 1 file changed, 1 insertion(+)

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] package/mender: fix missing /var/lib
  2019-02-15 21:42 [Buildroot] [PATCH] package/mender: fix missing /var/lib Angelo Compagnucci
@ 2019-02-15 22:00 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-02-15 22:00 UTC (permalink / raw)
  To: buildroot

Hello Angelo,

On Fri, 15 Feb 2019 22:42:53 +0100
Angelo Compagnucci <angelo.compagnucci@gmail.com> wrote:

> 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/02fde80f6b4bc57d5f2833bd979bf166252eab16

This reference was a build failure on the "next" branch, so one might
think that the issue only exists on the next branch. So I've replaced
this with a reference to a build failure that happens on the "master"
branch, which makes it clear this patch should be applied on master.

Also for future patches: please always leave one blank line before your
SoB.

> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
> ---
>  package/mender/mender.mk | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-15 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-15 21:42 [Buildroot] [PATCH] package/mender: fix missing /var/lib Angelo Compagnucci
2019-02-15 22:00 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox