craft_parts.utils.partition_utils module¶
Unit tests for partition utilities.
- craft_parts.utils.partition_utils.validate_partition_names(partitions)[source]¶
Validate the partition feature set.
- If the partition feature is enabled, then:
the first partition must be “default”
each partition must contain only lowercase alphabetical characters
partitions are unique
- Parameters:
partitions (
Optional
[Sequence
[str
]]) – Partition data to verify.- Raises:
ValueError – If the partitions are not valid or the feature is not enabled.
- Return type:
None