guix-play/gnu/system
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
..
examples examples: Add password for Alice's brother. 2020-07-29 07:50:23 +03:00
images image: Do not set journal_model=WAL for the Hurd. 2020-07-11 16:34:01 +02:00
accounts.scm accounts: Add default value for the 'home-directory' field of <user-account>. 2019-03-25 23:37:06 +01:00
file-systems.scm file-systems: Leave room for extension in serialized specs. 2020-08-03 17:44:38 +02:00
hurd.scm system: hurd: Oops, have 'initrd' default to #f. 2020-06-30 18:26:47 +02:00
image.scm linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
install.scm file-system: Add efivarfs support. 2020-07-31 13:43:36 +02:00
keyboard.scm system: Allow for comma-separated keyboard layouts. 2020-04-06 00:14:13 +02:00
linux-container.scm services: system: Initial entries are non-monadic. 2020-04-26 22:49:49 +02:00
linux-initrd.scm linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
locale.scm locale: Use the native gzip and libc when building locales. 2020-05-15 00:01:39 +02:00
mapped-devices.scm Use 'formatted-message' instead of '&message' where appropriate. 2020-07-25 19:11:37 +02:00
nss.scm nss: Remove '%compat' from the defaults. 2018-03-27 23:26:15 +02:00
pam.scm services: Add descriptions. 2020-05-08 16:30:50 +02:00
shadow.scm linux-libre: Support module compression. 2020-08-25 11:53:20 +02:00
uuid.scm file-systems: Add NTFS support. 2020-07-26 18:35:10 +02:00
vm.scm Revert "vm: Use virtio network driver." 2020-07-11 23:36:31 +02:00