diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-01-11 16:57:40 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-01-11 17:11:51 +0100 |
commit | e4b2964ee0cbacfc12717c06f4bb979ba596493f (patch) | |
tree | ce9c8e9afdedf4dbf03af3f8063dc25f25a8f9ed /setup.py | |
parent | 34fd2cbe48d8df7ca0cd6b90330e58b671edd20d (diff) |
label: check parttypes identity type
parttypes can be either:
- A code for MBR/DOS
- An UUID for GPT
User needs a label instance before using a parttype getter. If checking
for a parttype using a code, check if the current label support that
kind of parttype identification before retrieving it. Same applies for
UUID based parttypes.
If wrong identity type is used, raise an exception. Errors regarding
parttype are more informative this way.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions