Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

sys-kernel: compress modules with xz#628

Merged
dongsupark merged 2 commits intomainfrom
dongsu/kernel-module-compress
Oct 2, 2020
Merged

sys-kernel: compress modules with xz#628
dongsupark merged 2 commits intomainfrom
dongsu/kernel-module-compress

Conversation

@dongsupark
Copy link
Copy Markdown
Contributor

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

How to use

emerge-amd64-usr sys-kernel/coreos-modules sys-apps/kmod
./build_packages
./build_image

Testing done

CI passed for both amd64 and arm64.

Dongsu Park added 2 commits October 2, 2020 09:29
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
```
Now that Kernel modules are compressed with xz, the sys-apps/kmod
utility also needs to be built with xz/lzma supported.
@dongsupark dongsupark added enhancement New feature or request main labels Oct 2, 2020
@dongsupark dongsupark requested a review from a team October 2, 2020 07:38
@dongsupark dongsupark merged commit b164e86 into main Oct 2, 2020
@dongsupark dongsupark deleted the dongsu/kernel-module-compress branch October 2, 2020 12:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants