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

sys-kernel/coreos-module: use strip-debug instead of strip-unneeded #2196

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

jepio
Copy link
Contributor

@jepio jepio commented Sep 29, 2022

sys-kernel/coreos-module: use strip-debug instead of strip-unneeded

With --strip-unneeded some static symbols are also stripped from modules, making stacktraces incomplete, and making it harder to debug kernel issues. Switch to the default setting of --strip-debug, which keeps symbols intact and does not appear to lead to a measurable size increase of the /usr partition.

How to use

emerge-amd64-usr coreos-modules coreos-kernel

Testing done

Booted image and checked:

$ grep kjournald /proc/kallsyms
0000000000000000 t kjournald2   [jbd2]
  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

With `--strip-unneeded` some static symbols are also stripped from modules, making stacktraces
incomplete, and making it harder to debug kernel issues. Switch to the default setting of
`--strip-debug`, which keeps symbols intact and does not appear to lead to a measurable
size increase of the /usr partition.
@jepio jepio requested a review from a team September 29, 2022 13:36
@pothos
Copy link
Contributor

pothos commented Sep 29, 2022

Changelog entries added

Maybe it's good to include one here for future reference about which release includes this change

@pothos
Copy link
Contributor

pothos commented Sep 29, 2022

Is there any size difference on /boot?

@jepio
Copy link
Contributor Author

jepio commented Sep 29, 2022

Will add the changelog, and check the size difference on boot. I understand that we're close to the limit. This only affects modules, so the effect would be through the modules embed within the initramfs. Modules themselves are xz compressed.

@jepio
Copy link
Contributor Author

jepio commented Sep 30, 2022

So from http://jenkins.infra.kinvolk.io:8080/job/container/job/image_changes/212/console and http://jenkins.infra.kinvolk.io:8080/job/container/job/image_changes/203/console:

3346.0.0 3376.0.0-nightly this PR
Boot 54 54 55
Usr 1137 1138 1139
Sum 1203 1204 1206

on the arm64 side the boot partition size increase is not visible.

@pothos
Copy link
Contributor

pothos commented Sep 30, 2022

Good, for arm64 there was no raise reported (Boot: 58 MiB)

@jepio jepio merged commit 03a6ec7 into main Oct 4, 2022
@jepio jepio deleted the jepio-fix-kernel-stacktrace branch October 4, 2022 06:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants