All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bluez5: install /var/lib/bluetooth directory
@ 2022-04-08  8:15 Yi Zhao
  2022-04-08  8:34 ` [OE-core] " Stefan Herbrechtsmeier
  0 siblings, 1 reply; 9+ messages in thread
From: Yi Zhao @ 2022-04-08  8:15 UTC (permalink / raw)
  To: openembedded-core

There is a bluetooth service startup failure:
bluetooth.service: Failed at step NAMESPACE spawning /usr/libexec/bluetooth/bluetoothd: No such file or directory
bluetooth.service: Failed to set up mount namespacing: /run/systemd/unit-root/var/lib/bluetooth: No such file or directory

This is because the directory /var/lib/bluetooth has been listed in
ReadWritePaths= in the service unit file but does not exist. We need to
create it before service startup.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta/recipes-connectivity/bluez5/bluez5.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index 79d4645ca8..ee2cdbcc59 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -102,6 +102,8 @@ do_install:append() {
 	# Patch python tools to use Python 3; they should be source compatible, but
 	# still refer to Python 2 in the shebang
 	sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/*
+
+	install -d ${D}${localstatedir}/lib/bluetooth
 }
 
 PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools"
-- 
2.25.1



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

end of thread, other threads:[~2022-04-14 17:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-08  8:15 [PATCH] bluez5: install /var/lib/bluetooth directory Yi Zhao
2022-04-08  8:34 ` [OE-core] " Stefan Herbrechtsmeier
2022-04-08  9:23   ` Yi Zhao
2022-04-08 10:51     ` Stefan Herbrechtsmeier
2022-04-08 11:01       ` Yi Zhao
2022-04-08 20:03         ` Markus Volk
2022-04-11  7:17           ` Stefan Herbrechtsmeier
     [not found]           ` <16E4C65A42F3BFA4.4406@lists.openembedded.org>
2022-04-13  8:21             ` Stefan Herbrechtsmeier
2022-04-14 16:22               ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.