Skip to content

Simplify check for TpmFde encryption method#1420

Merged
ancorgs merged 3 commits intoyast:masterfrom
ancorgs:bsc1257315
Jan 29, 2026
Merged

Simplify check for TpmFde encryption method#1420
ancorgs merged 3 commits intoyast:masterfrom
ancorgs:bsc1257315

Conversation

@ancorgs
Copy link
Copy Markdown
Contributor

@ancorgs ancorgs commented Jan 29, 2026

Problem

When the TpmFde encryption method was introduced in Agama, it was only supported in a few distribution since it needed the experimental package fde-tools. Hence, the availability of that package was considered a condition for the availability of the encryption method.

That has been always problematic since the availability of a certain package is something that can change over time during installation. But it became a serious issue recently, because newer versions of Agama (based on the new APIv2) parallelize more operations than before. So it can happen that the availability of those package is checked even before the software stack has configured all repositories. That makes it impossible to use the TpmFde encryption method in an unattended installation.

Solution

Stop checking for the package availability. That's something we had already agreed to do some time ago.

On the one hand, the package is not longer experimental and it should be in all (open)SUSE distributions.

On the other hand, we already have a mechanism (the storage features) to enforce the installation of a package if a certain feature is used. That is honored for TpmFde since the introduction of #1363. That mechanism is good enough to manage package dependencies for all storage technologies, so there is not reason to use a different mechanism for the TpmFde availability.

Extra

This pull request also introduces a fix for the unit tests. They got broken by #1413, which short-circuits the volumes configuration in a rather hacky way. After that change, the unit tests only worked if executed in a certain order and if no /etc/YaST2/ProductFeatures file was present in the system running the tests.

Unit tests should work properly now... until we have a chance to fix that code to use a cleaner approach.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 97.692%. remained the same
when pulling 384b547 on ancorgs:bsc1257315
into 3e0a27b on yast:master.

Copy link
Copy Markdown
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ancorgs ancorgs marked this pull request as ready for review January 29, 2026 09:39
@ancorgs ancorgs merged commit d831b09 into yast:master Jan 29, 2026
6 checks passed
@github-actions
Copy link
Copy Markdown

✅ Autosubmission job #21473120217 successfully finished
✅ Created submit request #1329787

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.

3 participants