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

Should dracut uncompress compressed kernel modules before installing into the initramfs? #2669

Open
Nowa-Ammerlaan opened this issue Aug 1, 2024 · 0 comments
Labels
enhancement Issue adding new functionality

Comments

@Nowa-Ammerlaan
Copy link

A kernel that is configured to compress modules (for example CONFIG_MODULE_COMPRESS_XZ=y) still supports loading uncompressed modules. Given that it is size-wise more efficient to compress a bunch of uncompressed files, compared to compressing a bunch of files that are individually already compressed. It might make sense for Dracut to decompress modules it finds before including them in the initramfs.

The same holds for firmware files (CONFIG_FW_LOADER_COMPRESS_XZ=y).

To put this in numbers, an UKI for the same kernel with the same user space utilities, but with pre-xz-compressed kernel modules and firmware is 356.352 kb larger on my system.

@Nowa-Ammerlaan Nowa-Ammerlaan added the enhancement Issue adding new functionality label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue adding new functionality
Projects
None yet
Development

No branches or pull requests

1 participant