Maxim Cournoyer afacfa33ec
gnu: linux-libre: Enable Zstd compression of kernel modules.
This brings the on disk size of the kernel from 164 MiB to 144 MiB, or about
12%.

* gnu/packages/linux.scm (default-extra-linux-options)
[version>=5.13]: Enable CONFIG_MODULE_COMPRESS_ZSTD, else
CONFIG_MODULE_COMPRESS_GZIP.
(make-linux-libre*) [phases] {set-environment}: Set ZSTD_CLEVEL environment
variable to 19.
[native-inputs]: Add zstd.
* gnu/build/linux-modules.scm (module-regex): Add .zst to regexp.  Update doc.
(modinfo-section-contents): Extend support to Zstd compressed module.
(dot-ko): Register the 'zstd compression type.
(ensure-dot-ko, file-name->module-name, load-linux-module*)
(module-name->file-name/guess, write-module-name-database)
(write-module-alias-database, write-module-device-database): Update doc.
(module-name-lookup): Also consider zstd-compressed modules.
* gnu/installer.scm (installer-program): Add guile-zstd extension to gexp.
* gnu/system/linux-initrd.scm (flat-linux-module-directory): Likewise.
Decompress zstd-compressed modules for use in initrd.
* guix/profiles.scm (linux-module-database): Add guile-zstd extension to gexp.

Change-Id: Ide899dc5c58ea5033583b1a91a92c025fc8d901a
2024-05-29 22:01:23 -04:00
..
2023-03-13 15:08:33 +01:00
2023-09-26 17:36:58 +02:00
2024-03-07 13:04:27 +02:00
2024-04-15 22:36:42 +02:00
2024-04-15 22:36:42 +02:00
2024-01-08 21:04:44 +03:00
2024-04-15 22:36:42 +02:00
2024-04-15 22:36:42 +02:00
2023-08-25 14:24:43 +02:00
2023-03-13 15:08:33 +01:00
2022-12-02 23:20:54 +01:00
2022-07-10 23:57:14 +02:00
2024-04-15 22:36:42 +02:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2024-04-15 22:36:42 +02:00
2024-05-13 12:01:49 +01:00
2024-05-13 19:31:17 +01:00
2024-04-15 22:36:42 +02:00