]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(bluetooth): skip warning when module is explicitly requested
authorEsat <saygina7@gmail.com>
Wed, 27 May 2026 15:42:56 +0000 (18:42 +0300)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 31 May 2026 13:35:50 +0000 (09:35 -0400)
modules.d/70bluetooth/module-setup.sh

index 203fc495f6139c23c6b245ffcdc8f321399c9998..b7516630f1740c2015a51adca18cb87e2f3e72ec 100755 (executable)
@@ -14,6 +14,7 @@ check() {
         #  * Keyboard/pointing (0xC0)
         # and if Appearance is set to the value defined for keyboard (0x03C1)
         [ -d "/sys/class/bluetooth" ] && grep -qsiE -e 'Class=0x[0-9a-f]{3}5[4c]0' -e 'Appearance=0x03c1' /var/lib/bluetooth/*/*/info \
+            && [[ " $dracutmodules $add_dracutmodules $force_add_dracutmodules " != *\ bluetooth\ * ]] \
             && dwarn "If you need to use bluetooth, please include it explicitly."
     fi