-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AgamaProposal: Honor DiskAnalyzer candidate devices when searching dr…
…ives (#1765) ## Problem When searching drives, the initial implementation of `AgamaProposal` uses all disk (or disk-like devices, to be precise) in the system. That is ok as a first attempt, but we always knew we might need to refine that a bit. Now that we are working on the new interface for storage configuration, fully based on `AgamaProposal`, the fact that `AgamaProposal` can choose a disk that is not considered by `DiskAnalyzer` to be an installation candidate feels a bit odd. ## Solution For the time being (and with minimal code changes), this adapts the `AgamaProposal` algorithm to filter out disks that are skipped by `DiskAnalyzer`. That typically means the disks from which the installer is running, disks that contain installation repositories, etc. We may need to refine that in the future again. But for now that's the most consistent behavior we can adopt without taking big decisions. ## Testing Added a new unit test Manual testing done by @joseivanlopez.
- Loading branch information
Showing
5 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Thu Nov 14 13:26:23 UTC 2024 - Ancor Gonzalez Sosa <[email protected]> | ||
|
||
- Storage: honor the candidate devices from DiskAnalyzer when | ||
matching drives (gh#agama-project/agama#1765). | ||
|
||
------------------------------------------------------------------- | ||
Wed Nov 13 12:14:06 UTC 2024 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters