* [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
* Re: [OE-core] [PATCH] bluez5: install /var/lib/bluetooth directory
2022-04-08 8:15 [PATCH] bluez5: install /var/lib/bluetooth directory Yi Zhao
@ 2022-04-08 8:34 ` Stefan Herbrechtsmeier
2022-04-08 9:23 ` Yi Zhao
0 siblings, 1 reply; 9+ messages in thread
From: Stefan Herbrechtsmeier @ 2022-04-08 8:34 UTC (permalink / raw)
To: yi.zhao; +Cc: openembedded-core
Am 08.04.2022 um 10:15 schrieb Yi Zhao via lists.openembedded.org:
> 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
Please use systemd StateDirectory= [1]. Maybe it is reasonable to
replace the ReadWritePaths= with StateDirectory=.
[1]
https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] bluez5: install /var/lib/bluetooth directory
2022-04-08 8:34 ` [OE-core] " Stefan Herbrechtsmeier
@ 2022-04-08 9:23 ` Yi Zhao
2022-04-08 10:51 ` Stefan Herbrechtsmeier
0 siblings, 1 reply; 9+ messages in thread
From: Yi Zhao @ 2022-04-08 9:23 UTC (permalink / raw)
To: Stefan Herbrechtsmeier; +Cc: openembedded-core
On 4/8/22 16:34, Stefan Herbrechtsmeier wrote:
> Am 08.04.2022 um 10:15 schrieb Yi Zhao via lists.openembedded.org:
>> 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
>
> Please use systemd StateDirectory= [1]. Maybe it is reasonable to
> replace the ReadWritePaths= with StateDirectory=.
>
> [1]
> https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
Thanks Stefank, but the ReadWritePaths= is set by bluez:
https://github.com/bluez/bluez/commit/442d211b5f30f00d5ddd69b43385a03c1428ac45
//Yi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] bluez5: install /var/lib/bluetooth directory
2022-04-08 9:23 ` Yi Zhao
@ 2022-04-08 10:51 ` Stefan Herbrechtsmeier
2022-04-08 11:01 ` Yi Zhao
0 siblings, 1 reply; 9+ messages in thread
From: Stefan Herbrechtsmeier @ 2022-04-08 10:51 UTC (permalink / raw)
To: Yi Zhao; +Cc: openembedded-core
Am 08.04.2022 um 11:23 schrieb Yi Zhao:
>
> On 4/8/22 16:34, Stefan Herbrechtsmeier wrote:
>> Am 08.04.2022 um 10:15 schrieb Yi Zhao via lists.openembedded.org:
>>> 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
>>
>> Please use systemd StateDirectory= [1]. Maybe it is reasonable to
>> replace the ReadWritePaths= with StateDirectory=.
>>
>> [1]
>> https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
>>
>
>
> Thanks Stefank, but the ReadWritePaths= is set by bluez:
>
> https://github.com/bluez/bluez/commit/442d211b5f30f00d5ddd69b43385a03c1428ac45
And who creates the directory before the patch?
The systemd solution to create a state directory is StateDirectory= (or
tmpfiles.d for older versions of systemd). Systemd supports stateless
system [1] and therefore every service must work with an empty /var/lib.
This patch hide a bug in bluez and the problem should be fixed in bluez.
[1] https://0pointer.net/blog/projects/stateless.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] bluez5: install /var/lib/bluetooth directory
2022-04-08 10:51 ` Stefan Herbrechtsmeier
@ 2022-04-08 11:01 ` Yi Zhao
2022-04-08 20:03 ` Markus Volk
0 siblings, 1 reply; 9+ messages in thread
From: Yi Zhao @ 2022-04-08 11:01 UTC (permalink / raw)
To: Stefan Herbrechtsmeier; +Cc: openembedded-core
On 4/8/22 18:51, Stefan Herbrechtsmeier wrote:
> Am 08.04.2022 um 11:23 schrieb Yi Zhao:
>>
>> On 4/8/22 16:34, Stefan Herbrechtsmeier wrote:
>>> Am 08.04.2022 um 10:15 schrieb Yi Zhao via lists.openembedded.org:
>>>> 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
>>>
>>> Please use systemd StateDirectory= [1]. Maybe it is reasonable to
>>> replace the ReadWritePaths= with StateDirectory=.
>>>
>>> [1]
>>> https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
>>>
>>
>>
>> Thanks Stefank, but the ReadWritePaths= is set by bluez:
>>
>> https://github.com/bluez/bluez/commit/442d211b5f30f00d5ddd69b43385a03c1428ac45
>>
>
> And who creates the directory before the patch?
There is no need this directory before the patch. The service can
startup without this directory.
>
> The systemd solution to create a state directory is StateDirectory=
> (or tmpfiles.d for older versions of systemd). Systemd supports
> stateless system [1] and therefore every service must work with an
> empty /var/lib.
I'll try adding StateDirecotry to service unit file to see if this can
solve the problem. Thanks.
//Yi
>
> This patch hide a bug in bluez and the problem should be fixed in bluez.
>
> [1] https://0pointer.net/blog/projects/stateless.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] bluez5: install /var/lib/bluetooth directory
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>
0 siblings, 2 replies; 9+ messages in thread
From: Markus Volk @ 2022-04-08 20:03 UTC (permalink / raw)
To: openembedded-core
also had this issue and found out, that the bluetooth service did come
up, once bluetooth was enabled
My fix was to edit like this
ReadWritePaths=:/var/lib/bluetooth
The colon ensures that the service won't fail if the directory doesn't exist
Am 08.04.22 um 13:01 schrieb Yi Zhao:
>
> On 4/8/22 18:51, Stefan Herbrechtsmeier wrote:
>> Am 08.04.2022 um 11:23 schrieb Yi Zhao:
>>>
>>> On 4/8/22 16:34, Stefan Herbrechtsmeier wrote:
>>>> Am 08.04.2022 um 10:15 schrieb Yi Zhao via lists.openembedded.org:
>>>>> 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
>>>>
>>>> Please use systemd StateDirectory= [1]. Maybe it is reasonable to
>>>> replace the ReadWritePaths= with StateDirectory=.
>>>>
>>>> [1]
>>>> https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
>>>>
>>>
>>>
>>> Thanks Stefank, but the ReadWritePaths= is set by bluez:
>>>
>>> https://github.com/bluez/bluez/commit/442d211b5f30f00d5ddd69b43385a03c1428ac45
>>>
>>
>> And who creates the directory before the patch?
>
> There is no need this directory before the patch. The service can
> startup without this directory.
>
>
>>
>> The systemd solution to create a state directory is StateDirectory=
>> (or tmpfiles.d for older versions of systemd). Systemd supports
>> stateless system [1] and therefore every service must work with an
>> empty /var/lib.
>
>
> I'll try adding StateDirecotry to service unit file to see if this
> can solve the problem. Thanks.
>
>
> //Yi
>
>>
>> This patch hide a bug in bluez and the problem should be fixed in bluez.
>>
>> [1] https://0pointer.net/blog/projects/stateless.html
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#164159): https://lists.openembedded.org/g/openembedded-core/message/164159
> Mute This Topic: https://lists.openembedded.org/mt/90331367/3618223
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [f_l_k@t-online.de]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] bluez5: install /var/lib/bluetooth directory
2022-04-08 20:03 ` Markus Volk
@ 2022-04-11 7:17 ` Stefan Herbrechtsmeier
[not found] ` <16E4C65A42F3BFA4.4406@lists.openembedded.org>
1 sibling, 0 replies; 9+ messages in thread
From: Stefan Herbrechtsmeier @ 2022-04-11 7:17 UTC (permalink / raw)
To: f_l_k, openembedded-core
Am 08.04.2022 um 22:03 schrieb Markus Volk via lists.openembedded.org:
> also had this issue and found out, that the bluetooth service did come
> up, once bluetooth was enabled
>
> My fix was to edit like this
>
> ReadWritePaths=:/var/lib/bluetooth
>
> The colon ensures that the service won't fail if the directory doesn't
> exist
Regarding the documentation the ReadOnlyPaths and ReadWritePaths makes
not sense because ProtectSystem=full mounts /usr, boot loader and /etc
directories read-only.
Have somebody report the problem to the bluez project?
Regards
Stefan
>
>
> Am 08.04.22 um 13:01 schrieb Yi Zhao:
>>
>> On 4/8/22 18:51, Stefan Herbrechtsmeier wrote:
>>> Am 08.04.2022 um 11:23 schrieb Yi Zhao:
>>>>
>>>> On 4/8/22 16:34, Stefan Herbrechtsmeier wrote:
>>>>> Am 08.04.2022 um 10:15 schrieb Yi Zhao via lists.openembedded.org:
>>>>>> 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
>>>>>
>>>>> Please use systemd StateDirectory= [1]. Maybe it is reasonable to
>>>>> replace the ReadWritePaths= with StateDirectory=.
>>>>>
>>>>> [1]
>>>>> https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
>>>>>
>>>>
>>>>
>>>> Thanks Stefank, but the ReadWritePaths= is set by bluez:
>>>>
>>>> https://github.com/bluez/bluez/commit/442d211b5f30f00d5ddd69b43385a03c1428ac45
>>>>
>>>
>>> And who creates the directory before the patch?
>>
>> There is no need this directory before the patch. The service can
>> startup without this directory.
>>
>>
>>>
>>> The systemd solution to create a state directory is StateDirectory=
>>> (or tmpfiles.d for older versions of systemd). Systemd supports
>>> stateless system [1] and therefore every service must work with an
>>> empty /var/lib.
>>
>>
>> I'll try adding StateDirecotry to service unit file to see if this
>> can solve the problem. Thanks.
>>
>>
>> //Yi
>>
>>>
>>> This patch hide a bug in bluez and the problem should be fixed in bluez.
>>>
>>> [1] https://0pointer.net/blog/projects/stateless.html
>>
>>
>>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#164177): https://lists.openembedded.org/g/openembedded-core/message/164177
> Mute This Topic: https://lists.openembedded.org/mt/90331367/6374899
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [stefan.herbrechtsmeier-oss@weidmueller.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] bluez5: install /var/lib/bluetooth directory
[not found] ` <16E4C65A42F3BFA4.4406@lists.openembedded.org>
@ 2022-04-13 8:21 ` Stefan Herbrechtsmeier
2022-04-14 16:22 ` Richard Purdie
0 siblings, 1 reply; 9+ messages in thread
From: Stefan Herbrechtsmeier @ 2022-04-13 8:21 UTC (permalink / raw)
To: f_l_k, Yi Zhao; +Cc: openembedded-core
Hi,
Am 11.04.2022 um 09:17 schrieb Stefan Herbrechtsmeier via
lists.openembedded.org:
> Am 08.04.2022 um 22:03 schrieb Markus Volk via lists.openembedded.org:
>> also had this issue and found out, that the bluetooth service did come
>> up, once bluetooth was enabled
>>
>> My fix was to edit like this
>>
>> ReadWritePaths=:/var/lib/bluetooth
>>
>> The colon ensures that the service won't fail if the directory doesn't
>> exist
>
> Regarding the documentation the ReadOnlyPaths and ReadWritePaths makes
> not sense because ProtectSystem=full mounts /usr, boot loader and /etc
> directories read-only.
>
> Have somebody report the problem to the bluez project?
I have open an issue:
https://github.com/bluez/bluez/issues/329
I will post a patch when we come to a solution.
Regards
Stefan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] bluez5: install /var/lib/bluetooth directory
2022-04-13 8:21 ` Stefan Herbrechtsmeier
@ 2022-04-14 16:22 ` Richard Purdie
0 siblings, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2022-04-14 16:22 UTC (permalink / raw)
To: Stefan Herbrechtsmeier, f_l_k, Yi Zhao; +Cc: openembedded-core, Scott Murray
On Wed, 2022-04-13 at 10:21 +0200, Stefan Herbrechtsmeier wrote:
> Hi,
>
> Am 11.04.2022 um 09:17 schrieb Stefan Herbrechtsmeier via
> lists.openembedded.org:
> > Am 08.04.2022 um 22:03 schrieb Markus Volk via lists.openembedded.org:
> > > also had this issue and found out, that the bluetooth service did come
> > > up, once bluetooth was enabled
> > >
> > > My fix was to edit like this
> > >
> > > ReadWritePaths=:/var/lib/bluetooth
> > >
> > > The colon ensures that the service won't fail if the directory doesn't
> > > exist
> >
> > Regarding the documentation the ReadOnlyPaths and ReadWritePaths makes
> > not sense because ProtectSystem=full mounts /usr, boot loader and /etc
> > directories read-only.
> >
> > Have somebody report the problem to the bluez project?
>
> I have open an issue:
> https://github.com/bluez/bluez/issues/329
>
> I will post a patch when we come to a solution.
We have a slight challenge in that I'd like to build 4.0 rc2 but I think there
will be complaints if this is left broken.
I'm going to post a version of your patch and hope that improves things. If
anyone knows of issues with that patch please let me know ASAP.
Cheers,
Richard
^ permalink raw reply [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.