-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dracut: add support for one only module groups
This supports the case where only a single module from a group will be put into the initramfs to keep initramfs sizes down where firmware files are getting large. The kernel will denote a group like this: MODULE_FIRMWARE_GROUP_ONLY_ONE("ga106-gsp"); MODULE_FIRMWARE("nvidia/ga106/gsp/gsp-5258902.bin"); MODULE_FIRMWARE("nvidia/ga106/gsp/gsp-5303002.bin"); MODULE_FIRMWARE_GROUP_ONLY_ONE("ga106-gsp"); dracut will then scan this group and install at least one of the modules between the brackets for that group. The ordering is decided by the way modinfo is written which is reversed from the order things are specified, so dracut will pick the first entry in the group, which will be the last entry the kernel module specifies. The kernel driver will then handle whatever it ends up finding. Signed-off-by: Dave Airlie <[email protected]>
- Loading branch information
Showing
1 changed file
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters