dracut-install has these options: -P --mod-filter-nopath Exclude kernel modules by path regexp -N --mod-filter-noname Exclude kernel modules by name regexp
I'm more thinking along the lines of: rm_modules_dir() rm_modules() Which would apply mod-filter-nopath / mod-filter-noname, after the full list of modules to include has been assembled. I am assuming that any add module requests are bundled together into a single dracut-install call, such that rm_modules()/rm_modules_dir() call will be effective. Then raspberri pi hook may have a list of things to exclude, which can then be optionally disabled based on the toggles it would have. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu. https://bugs.launchpad.net/bugs/2036885 Title: please add API to exclude things Status in initramfs-tools package in Ubuntu: Triaged Bug description: Please add API to exclude things It would be useful on Pi to say "yes include all graphics" but do exclude "amdgpu, nvidia" drivers and firmware related to those. Something along the lines of a "exclude filter list" for drivers & firmware. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2036885/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

