Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up kernel modules initrd generation if no excludes were specified #2465

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

DaanDeMeyer
Copy link
Contributor

No description provided.

If no excludes were specified, we can just glob all modules and firmware
without going via modinfo. We can only do this if no firmware was installed
as otherwise we end up copying firmware into the initrd that's not depended
on by any kernel modules.
@behrmann behrmann merged commit 165008b into systemd:main Mar 6, 2024
31 checks passed
# There is firmware in /usr/lib/firmware that is not depended on by any modules so if any firmware was installed
# we have to take the slow path to make sure we don't copy firmware into the initrd that is not depended on by any
# kernel modules.
if exclude or not (root / "usr/lib/firmware").glob("*"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The not seems to be erroneous, see #2521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants