Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #237839

Re: Bluetooth: Disabling ertm via sysfsutils

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: Bluetooth: Disabling ertm via sysfsutils
Date 2021-07-28 14:50 +0200
Message-ID <CFRax-20P-5@gated-at.bofh.it> (permalink)
References <CFR0R-1WL-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	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

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bluetooth: Disabling ertm via sysfsutils Christian Britz <cbritz@t-online.de> - 2021-07-28 14:40 +0200
  Re: Bluetooth: Disabling ertm via sysfsutils Reco <recoverym4n@enotuniq.net> - 2021-07-28 14:50 +0200
    Re: Bluetooth: Disabling ertm via sysfsutils Christian Britz <cbritz@mail.de> - 2021-07-28 15:30 +0200

csiph-web