From: Henrik Gombos Date: Sat, 17 Jun 2023 18:15:03 +0000 (+0000) Subject: fix(bluetooth): warn user instead of including it by default X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ecb038832038523a27f989d0eb82b45fb67861c;p=thirdparty%2Fdracut.git fix(bluetooth): warn user instead of including it by default Bluetooth module can result in a known race condition at boot. Discourage its usage by default. --- diff --git a/modules.d/62bluetooth/module-setup.sh b/modules.d/62bluetooth/module-setup.sh index 596f0ee3a..460a057cd 100755 --- a/modules.d/62bluetooth/module-setup.sh +++ b/modules.d/62bluetooth/module-setup.sh @@ -8,10 +8,11 @@ check() { require_any_binary /usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd || return 1 if [[ $hostonly ]]; then - # Include by default if a Peripheral (0x500) is found of minor class: + # Warn user if a Peripheral (0x500) is found of minor class: # * Keyboard (0x40) # * Keyboard/pointing (0xC0) - grep -qiE 'Class=0x[0-9a-f]{3}5[4c]0' /var/lib/bluetooth/*/*/info 2> /dev/null && return 0 + grep -qiE 'Class=0x[0-9a-f]{3}5[4c]0' /var/lib/bluetooth/*/*/info 2> /dev/null \ + && dwarn "If you need to use bluetooth, please include it explicitly." fi return 255