guix/gnu
Mathieu Othacehe 755f365b02
linux-libre: Support module compression.
This commit adds support for GZIP compression for linux-libre kernel
modules. The initrd modules are kept uncompressed as the initrd is already
compressed as a whole.

The linux-libre kernel also supports XZ compression, but as Guix does not have
any available bindings for now, and the compression time is far more
significant, GZIP seems to be a better option.

* gnu/build/linux-modules.scm (modinfo-section-contents): Use
'call-with-gzip-input-port' to read from a module file using '.gz' extension,
(strip-extension): new procedure,
(dot-ko): adapt to support compression,
(ensure-dot-ko): ditto,
(file-name->module-name): ditto,
(find-module-file): ditto,
(load-linux-module*): ditto,
(module-name->file-name/guess): ditto,
(module-name-lookup): ditto,
(write-module-name-database): ditto,
(write-module-alias-database): ditto,
(write-module-device-database): ditto.
* gnu/installer.scm (installer-program): Add "guile-zlib" to the extensions.
* gnu/machine/ssh.scm (machine-check-initrd-modules): Ditto.
* gnu/services.scm (activation-script): Ditto.
* gnu/services/base.scm (default-serial-port): Ditto,
(agetty-shepherd-service): ditto,
(udev-service-type): ditto.
* gnu/system/image.scm (gcrypt-sqlite3&co): Ditto.
* gnu/system/linux-initrd.scm (flat-linux-module-directory): Add "guile-zlib"
to the extensions and make sure that the initrd only contains
uncompressed module files.
* gnu/system/shadow.scm (account-shepherd-service): Add "guile-zlib" to the
extensions.
* guix/profiles.scm (linux-module-database): Ditto.
2020-08-25 11:53:20 +02:00
..
bootloader
build linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
installer installer: Remove logical devices. 2020-08-06 11:31:38 +02:00
machine linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
packages gnu: emacs-debbugs: Update to 0.26. 2020-08-25 10:07:55 +02:00
services linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
system linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
tests
artwork.scm
bootloader.scm
ci.scm
image.scm
installer.scm linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
local.mk gnu: Add nicotine. 2020-08-22 12:50:55 -04:00
machine.scm
packages.scm packages: 'generate-package-cache' is deterministic. 2020-07-30 19:17:20 +02:00
services.scm linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
system.scm system: Validate sudoers file when building the system. 2020-08-24 23:23:57 +02:00
tests.scm