guix/gnu/build
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
..
accounts.scm
activation.scm activation: Fix function call for system activation 2020-06-09 10:43:54 +02:00
bootloader.scm
cross-toolchain.scm
file-systems.scm file-system: Add mount-may-fail? option. 2020-07-31 13:43:20 +02:00
hurd-boot.scm hurd-boot: Mount /proc, add /etc/mtab. 2020-06-27 13:01:40 +02:00
image.scm image: Do not set journal_model=WAL for the Hurd. 2020-07-11 16:34:01 +02:00
install.scm
linux-boot.scm hurd-boot: Further cleanup of "rc". 2020-06-08 14:26:14 +02:00
linux-container.scm
linux-initrd.scm
linux-modules.scm linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
locale.scm
marionette.scm
shepherd.scm shepherd: 'read-pid-file/container' terminates the whole process group. 2020-06-12 00:04:42 +02:00
svg.scm
vm.scm database: 'register-items' takes an open database. 2020-06-18 14:48:17 +02:00