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

Fix a bug when formatting a full disk as Btrfs with snapshots #1385

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

ancorgs
Copy link
Contributor

@ancorgs ancorgs commented Jun 14, 2024

Problem

This bug at Agama was reported agama-project/agama#1339

Turns out the root of the error was an uncaught exception at the GuidedProposal caused because YaST was trying to adjust the sizes of the root device to fulfill the Btrfs-related settings... but such a device was a disk instead of an LV or partition.

Solution

Added the same guard we have in other parts of DevicesPlanner (eg. adjust_sizes).

Testing

  • Added a new unit test
  • Tested manually with Agama. It solves the reported bug.

@coveralls
Copy link

Coverage Status

coverage: 97.804%. remained the same
when pulling ace78c6 on ancorgs:fix-agama-btrfs-disk
into 034d1fb on yast:master.

@coveralls
Copy link

Coverage Status

coverage: 97.804%. remained the same
when pulling f90b6d5 on ancorgs:fix-agama-btrfs-disk
into 034d1fb on yast:master.

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.

LGTM

@ancorgs ancorgs merged commit b8df602 into yast:master Jun 14, 2024
6 checks passed
@coveralls
Copy link

Coverage Status

coverage: 97.804%. remained the same
when pulling 60a876a on ancorgs:fix-agama-btrfs-disk
into 034d1fb on yast:master.

@yast-bot
Copy link

✔️ Internal Jenkins job #1158 successfully finished
✔️ Created OBS submit request #1180916

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