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 build: bootloader: Add install-efi procedure. 2020-05-05 16:08:33 +02:00
cross-toolchain.scm gnu: cross-base: Switch back to 'CROSS_C_INCLUDE_PATH' & co. 2020-02-12 20:35:43 +01:00
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 Merge branch 'master' into core-updates 2020-05-05 20:43:21 +02:00
linux-boot.scm hurd-boot: Further cleanup of "rc". 2020-06-08 14:26:14 +02:00
linux-container.scm linux-container: "run-container" scripts shows the container's PID. 2019-09-12 23:07:43 +02:00
linux-initrd.scm build: initrd: Fix "write-cpio-archive" return value. 2019-09-25 12:18:25 +09:00
linux-modules.scm linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
locale.scm
marionette.scm marionette: Provide portable US-layout keystrokes for "<" and ">". 2020-02-22 00:45:42 +01:00
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