Skip to content
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

Storage proposal: always do a clean install #340

Merged
merged 2 commits into from
Nov 30, 2022
Merged

Conversation

ancorgs
Copy link
Contributor

@ancorgs ancorgs commented Nov 29, 2022

Problem

D-Installer uses the Y2Storage::GuidedProposal under the hood. But some aspects of the default settings that make sense in the case of YaST and SLE/Leap are wrong or confusing for D-Installer and ALP.

  • First of all, we still don't have a mechanism in D-Installer to configure what should be deleted/resized/kept in the affected disk(s). So it's more consistent and understandable to simply wipe the whole content of the disk. That's what the initial UI (being implemented at Storage proposal UI #321) will reflect with a sentence like "install using device /dev/xxx and deleting all its content".
  • When using LVM, YaST tries to reuse existing volume groups. We don't want to do the same in D-Installer (for now, at least) because that has proven to be confusing and, somehow, in conflict with the previous point about deleting everything.

Additionally, when encrypting a volume in ALP that should be done with LUKS2 using PBKDF2 as key derivation function. All other "products" known by D-Installer use the traditional LUKS1.

See more at: https://trello.com/c/DWTHEhgU/3230-2-d-installer-adjust-storage-proposal-settings

Solution

  • Consistent delete-all behavior enforced in the Y2Storage::ProposalSettings with a method marked as temporary.
  • The settings encryption_method and encryption_pbkdf are now configurable per-product at d-installer.yaml.
  • ALP configured to use LUKS2 with PBKDF2

Bonus: fixed a hardcoded "1234" at #hack_olaf_password.

Bonus2: added #338 to the changelog.

Testing

  • Added unit tests
  • Tested manually. It indeed deletes all existing partitions and uses LUKS2 for ALP.

Relations

Depends on yast/yast-storage-ng#1316

@ancorgs ancorgs force-pushed the adjust_proposal_settings branch 3 times, most recently from 832e774 to f02c59f Compare November 29, 2022 15:23
@coveralls
Copy link

coveralls commented Nov 30, 2022

Coverage Status

Coverage increased (+0.2%) to 74.878% when pulling e586908 on adjust_proposal_settings into 27cfff5 on master.

@ancorgs ancorgs marked this pull request as ready for review November 30, 2022 08:59
@ancorgs ancorgs merged commit f9fcdb0 into master Nov 30, 2022
@ancorgs ancorgs deleted the adjust_proposal_settings branch November 30, 2022 15:55
@yast-bot
Copy link
Contributor

yast-bot commented Dec 1, 2022

❌ Public Jenkins job #2 failed

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.

4 participants