Skip to content

Commit

Permalink
linux: always use xz for compressing modules
Browse files Browse the repository at this point in the history
The change I merged too hastily in NixOS#302300 increases the size by
~30%. This could be improved upon, but in the meantime let's go back
to xz while keeping zstd-compressed firmware (only 4.4% larger) and
_support_ for zstd-compressed modules.
  • Loading branch information
lheckemann committed May 8, 2024
1 parent a10842c commit 2f04c5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nixos/doc/manual/release-notes/rl-2405.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Use `services.pipewire.extraConfig` or `services.pipewire.configPackages` for Pi
- `system.etc.overlay.enable` option was added. If enabled, `/etc` is
mounted via an overlayfs instead of being created by a custom perl script.

- For each supporting version of the Linux kernel firmware blobs and kernel modules
- For each supporting version of the Linux kernel firmware blobs
are compressed with zstd. For firmware blobs this means an increase of 4.4% in size, however
a significantly higher decompression speed.

Expand Down
3 changes: 1 addition & 2 deletions pkgs/os-specific/linux/kernel/common-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,7 @@ let
ZEROPLUS_FF = yes;

MODULE_COMPRESS = whenOlder "5.13" yes;
MODULE_COMPRESS_XZ = whenOlder "5.13" yes;
MODULE_COMPRESS_ZSTD = whenAtLeast "5.13" yes;
MODULE_COMPRESS_XZ = yes;

SYSVIPC = yes; # System-V IPC

Expand Down

0 comments on commit 2f04c5f

Please sign in to comment.