Public bug reported:

The default remove rule in /etc/modprobe.d/iwlwifi.conf fails on Wi-Fi 7
(802.11be) hardware because it only greps for iwlmvm, iwldvm, and
iwlwifi, omitting iwlmld.

Root Cause:
When modprobe -r iwlwifi or modprobe -r iwlmld is called, grep finds no matches 
on systems using iwlmld, passing an empty string to xargs /sbin/rmmod. This 
causes rmmod to return exit status 1 with rmmod: ERROR: missing module name, 
breaking systemd sleep/suspend hooks.

Proposed Fix:
Add iwlmld to the grep patterns and passing --no-run-if-empty (-r) to xargs:
remove iwlwifi (/sbin/lsmod | grep -o -e ^iwlmld -e ^iwlmvm -e ^iwldvm -e 
^iwlwifi | xargs --no-run-if-empty /sbin/rmmod)

** Affects: kmod (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "output of sudo lspci -vnvn > lspci-vnvn.log"
   
https://bugs.launchpad.net/bugs/2163708/+attachment/5992948/+files/lspci-vnvn.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163708

Title:
  iwlmld not included in module removal step

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kmod/+bug/2163708/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to