sys-kernel/coreos-modules: compress modules with xz

Compress every kernel module with xz (lzma), to make more free space
in the rootfs.

Before:
```
$ sudo du -s /usr/lib64/modules/$(uname -r)/kernel/
90472   /usr/lib64/modules/5.8.11-flatcar/kernel/
$ df /usr
Filesystem      1K-blocks   Used Available Use% Mounted on
/dev/mapper/usr   1007760 916024     39720  96% /usr
```

After:

```
$ sudo du -s /usr/lib64/modules/$(uname -r)/kernel/
26908   /usr/lib64/modules/5.8.11-flatcar/kernel/
$ df /usr
Filesystem      1K-blocks   Used Available Use% Mounted on
/dev/mapper/usr   1007760 845468    110276  89% /usr
```
This commit is contained in:
Dongsu Park 2020-10-01 17:12:30 +02:00
parent 2900eb190e
commit 9444595cfb

View File

@ -435,6 +435,8 @@ CONFIG_MMC_BLOCK_MINORS=16
CONFIG_MMC_SDHCI=m
CONFIG_MMC_SDHCI_PCI=m
CONFIG_MODULES=y
CONFIG_MODULE_COMPRESS=y
CONFIG_MODULE_COMPRESS_XZ=y
CONFIG_MODULE_SIG=y
CONFIG_MODULE_SIG_KEY="certs/modules.pem"
CONFIG_MODULE_SIG_SHA256=y