[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bluetooth: Disabling ertm via sysfsutils



	Hi.

On Wed, Jul 28, 2021 at 02:30:20PM +0200, Christian Britz wrote:
> If I manually restart sysfsconf.service it works!

systemd manages to start sysfsconf before starting systemd-modules-load,
so that sysfs entry does not exist at the time of boot.

This is expected from systemd SYSV unit generator, it likes to write
just about every dependency to unit, but somehow manages to miss that
one you actually need.

>  Any Idea?

Two ideas.

1) First, if all you need is modify a kernel module option - you do not
need to tinker with /sys. Just create a file like this:

cat /etc/modprobe.d/bluetooth-ertm.conf << EOF
options bluetooth disable_ertm=1
EOF
update-initramfs -k all -u


2) Second, if you absolutely need that /sys-modifying kludge - you'll
need to invoke a usual systemd trick to modify sysfsutils dependencies:

mkdir /etc/systemd/system/sysfsutils.service.d/
cat /etc/systemd/system/sysfsutils.service.d/override.conf << EOF
[Unit]
After=systemd-modules-load.service
EOF
systemctl daemon-reload

Reco


Reply to: