-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osbuild: validate sfdisk stage options
DOS partition tables only support up to 4 partitions. Don't create the sfdisk stage options if this rule is violated. Stage validation failures panic, so we panic on the stage creation. This might change in the future (to return errors) but for now we use panics and put the responsibility on the callers to validate their inputs if they want to have better error control. Test sfdisk stage validation failure
- Loading branch information
1 parent
855d6f3
commit 8e2b2b9
Showing
2 changed files
with
36 additions
and
0 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