Skip to content

service: Adjust management of default encryption settings#2053

Merged
ancorgs merged 2 commits intoagama-project:masterfrom
ancorgs:tpm_pbkdf
Feb 24, 2025
Merged

service: Adjust management of default encryption settings#2053
ancorgs merged 2 commits intoagama-project:masterfrom
ancorgs:tpm_pbkdf

Conversation

@ancorgs
Copy link
Contributor

@ancorgs ancorgs commented Feb 23, 2025

Problem

When using TPM-based encryption, Agama is proposing a separate /boot partition.

The root of the problem is that the default PBKDF (pbkdf2) was not being initialized for the planned root partition. That is a problem because BootRequirementsChecker relies on Planned::Device#encryption_pbkdf to decide whether a separate "/boot" is needed.

Solution

Relax the criteria to ignore the default value of encryption_pbkdf. In fact, the whole area would deserve an important overhaul. But discriminating based on the encryption type instead of the encryption method is good enough for now.

Testing

Manually tested that this fixes the TPM case.

Copy link
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.

The fix looks ok. I am only missing a changelog entry and maybe some unit test?

@ancorgs ancorgs merged commit 3700972 into agama-project:master Feb 24, 2025
3 checks passed
@imobachgs imobachgs mentioned this pull request Feb 26, 2025
imobachgs added a commit that referenced this pull request Feb 26, 2025
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