summaryrefslogtreecommitdiffstats
path: root/mod-extra-blacklist.sh
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2020-03-09 17:21:31 +0100
committerHans de Goede <hdegoede@redhat.com>2020-03-09 17:21:31 +0100
commit281d5b5f30b12b3eb775e376a085198c1274509d (patch)
tree0859ac234688df0264988a22062d870f1fb23b90 /mod-extra-blacklist.sh
parent019446019b7846a3055f0adba42eee060b7ee3fa (diff)
downloadkernel-281d5b5f30b12b3eb775e376a085198c1274509d.tar.gz
kernel-281d5b5f30b12b3eb775e376a085198c1274509d.tar.xz
kernel-281d5b5f30b12b3eb775e376a085198c1274509d.zip
Fix backtraces on various buggy BIOS-es (rhbz 1564895, 1808874)
Add /etc/modprobe.d/floppy-blacklist.conf to fix auto-loading of the legacy floppy driver (rhbz 1789155)
Diffstat (limited to 'mod-extra-blacklist.sh')
-rwxr-xr-xmod-extra-blacklist.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod-extra-blacklist.sh b/mod-extra-blacklist.sh
index 9569ef6f2..c4c4f8f6d 100755
--- a/mod-extra-blacklist.sh
+++ b/mod-extra-blacklist.sh
@@ -46,3 +46,11 @@ foreachp()
[ -d "$buildroot/etc/modprobe.d/" ] || mkdir -p "$buildroot/etc/modprobe.d/"
find "$buildroot/$kernel_base/extra" -name "*.ko*" | \
foreachp check_blacklist
+
+# Many BIOS-es export a PNP-id which causes the floppy driver to autoload
+# even though most modern systems don't have a 3.5" floppy driver anymore
+# this replaces the old die_floppy_die.patch which removed the PNP-id from
+# the module
+if [ -f $buildroot/$kernel_base/extra/drivers/block/floppy.ko* ]; then
+ blacklist "floppy"
+fi