Skip to content

app-crypt/clevis: Version bump to 21#2751

Closed
chewi wants to merge 3 commits intomainfrom
chewi/new-clevis
Closed

app-crypt/clevis: Version bump to 21#2751
chewi wants to merge 3 commits intomainfrom
chewi/new-clevis

Conversation

@chewi
Copy link
Contributor

@chewi chewi commented Mar 17, 2025

app-crypt/clevis: Version bump to 21

This moves the systemd unit enabling to the image build scripts to make the ebuild less Flatcar-specific.

Unfortunately, Clevis is still very automagic, resulting in a poor quality ebuild. Improving this was actually the very first thing I tried to do for Flatcar back in 2022, 1½ years before I joined the team. I will try to revive this effort soon, and then we can maybe get the package upstreamed to Gentoo.

This also drops dev-libs/libpwquality and sys-libs/cracklib, which are no longer needed. They seemingly weren't explicitly included in Flatcar.

How to use

Admittedly, I don't know much about Clevis, so I'm trusting CI.

Testing done

A QEMU-only Jenkins run passed successfully. We appear to have some Clevis-specific tests.

Size-wise, unfortunately this adds awk and socat to the initrd, which inflates it by 1,322KB uncompressed. These are needed by the new pkcs11 Clevis module. We could prevent that from being installed, but the automagic nature of Clevis currently makes this awkward. Users may also find this feature useful. I looked into replacing its awk usage with sed, but I realised that the later releases of Dracut itself also install awk. The good news is that we're still within the limit, and for some unexplained reason, the arm64 kernel actually shrank considerably between 4186 and 4230. The size reported by this new build is still smaller than it previously was since 3815. I think we'll be okay between now and when I ultimately resolve these size limitations.

  • 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.

chewi added 3 commits March 17, 2025 10:01
This moves the systemd unit enabling to the image build scripts to make
the ebuild less Flatcar-specific.

Unfortunately, Clevis is still very automagic, resulting in a poor
quality ebuild. Improving this was actually the very first thing I tried
to do for Flatcar back in 2022, 1½ years before I joined the team. I
will try to revive this effort soon, and then we can maybe get the
package upstreamed to Gentoo.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This is no longer needed by app-crypt/clevis. It seemingly wasn't
explicitly included in Flatcar.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This was only required by dev-libs/libpwquality, which has been dropped.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
@chewi chewi requested a review from a team March 17, 2025 13:09
@chewi chewi self-assigned this Mar 17, 2025
@chewi
Copy link
Contributor Author

chewi commented Mar 17, 2025

On second thoughts, I want to tame Clevis a bit first. The pkcs11 module should actually depend on pcsc-lite. We have this in our repo for the SDK, but we don't actually install it in the image. If it is installed, it bloats the initrd too much.

@chewi chewi closed this Mar 17, 2025
@github-actions
Copy link

github-actions bot commented Mar 17, 2025

Build action triggered: https://github.com/flatcar/scripts/actions/runs/13922264193

@krnowak
Copy link
Member

krnowak commented Mar 18, 2025

On second thoughts, I want to tame Clevis a bit first. The pkcs11 module should actually depend on pcsc-lite. We have this in our repo for the SDK, but we don't actually install it in the image. If it is installed, it bloats the initrd too much.

Yeah, I think pcsc-lite was added to SDK purely for release engineering stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants