Skip to content

modutils completion: Fix FHS assumption

In NixOS (and Guix I think as well), kernel modules are found in /run/booted-system/kernel-modules/lib/modules and not in /lib/modules as was previously hard coded in the completion file. With this change, there's an array of directories and each directory is tested for existence before the rest of the script starts to rely on this directory.

Merge request reports

Loading