-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a new zram-generator package #1772
Conversation
This resolves flatcar/Flatcar#905
We need to add a keyword for arm64 to the profile, i can provide you a path tomorrow. Also a changelog entry would be nice. |
Build action triggered: https://github.com/flatcar/scripts/actions/runs/8420391132 |
The ebuild is keyworded ~arm64, align the two arches. Signed-off-by: Jeremi Piotrowski <[email protected]>
I pushed the extra profile keywords. There's a followup required because gentoo rust ebuilds don't handle cross-compilation, the followup is in #1780. Will merge this if the tests run as expected (there is an expected failure from the tang/tpm tests). |
sdk_container/src/third_party/portage-stable/changelog/changes/2024-03-21-zram-generator.md
Outdated
Show resolved
Hide resolved
Hello, a mantle CI test might be useful to make sure this new feature has proper regression validation? Thanks. |
Are you sure? I only see this:
Re mantle: lets take care of this separately because it would be a lot of work for a first time contributor and the arm64 package doesn't work yet. |
…/2024-03-21-zram-generator.md Co-authored-by: Mathieu Tortuyaux <[email protected]>
looks good to me:
I will add the Mantle test to check if any PR goes beyond the 50% usage in /boot in the following days, so that we won't need to verify manually each time. |
Thanks for the contribution @george-angel |
With the generator added in flatcar/scripts#1772 we don't need the manual setup anymore.
With the generator added in flatcar/scripts#1772 we don't need the manual setup anymore.
Adding sys-apps/zram-generator package
This resolves flatcar/Flatcar#905 . Issue explains the advantages of adding this package, but it effectively minimises the amount of config / setup a user needs to do as well as allowing for "dynamic" sizing of swap.
How to use
Create an image that contains this package and follow instructions at: https://wiki.gentoo.org/wiki/Zram#Using_systemd_zram-generator to use it.
Testing done
Built an image (based off current stable Flatcar) that includes
sys-apps/zram-generator
. Running with QEMU created the following config:Followed by:
And verified the swap was created:
Big thanks to @jepio with a lot of hand holding that was needed.
changelog/
directory (user-facing change, bug fix, security fix, update)/boot
and/usr
size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.