Blame 1521-Never-enable-the-bluetooth-module-by-default.patch

52e9ef
From ea8c9b1c4f39c52fc45788516dea19892cc275f7 Mon Sep 17 00:00:00 2001
52e9ef
From: Adam Williamson <awilliam@redhat.com>
52e9ef
Date: Thu, 10 Jun 2021 08:41:30 -0700
52e9ef
Subject: [PATCH] Never enable the bluetooth module by default (#1521)
52e9ef
52e9ef
Signed-off-by: Adam Williamson <awilliam@redhat.com>
52e9ef
---
52e9ef
 modules.d/62bluetooth/module-setup.sh | 9 +--------
52e9ef
 1 file changed, 1 insertion(+), 8 deletions(-)
52e9ef
52e9ef
diff --git a/modules.d/62bluetooth/module-setup.sh b/modules.d/62bluetooth/module-setup.sh
52e9ef
index b8270dd5..fd22670d 100755
52e9ef
--- a/modules.d/62bluetooth/module-setup.sh
52e9ef
+++ b/modules.d/62bluetooth/module-setup.sh
52e9ef
@@ -6,14 +6,7 @@
52e9ef
 check() {
52e9ef
     # If the binary(s) requirements are not fulfilled the module can't be installed
52e9ef
     require_any_binary /usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd || return 1
52e9ef
-
52e9ef
-    if [[ $hostonly ]]; then
52e9ef
-        # Include by default if a Peripheral (0x500) is found of minor class:
52e9ef
-        #  * Keyboard (0x40)
52e9ef
-        #  * Keyboard/pointing (0xC0)
52e9ef
-        grep -qiE 'Class=0x[0-9a-f]{3}5[4c]0' /var/lib/bluetooth/*/*/info 2> /dev/null && return 0
52e9ef
-    fi
52e9ef
-
52e9ef
+    # disabled until https://github.com/dracutdevs/dracut/issues/1521 is resolved
52e9ef
     return 255
52e9ef
 }
52e9ef
 
52e9ef
-- 
52e9ef
2.32.0.rc2
52e9ef