Skip to content

Use pyparted Partition.name - #4760

Merged
svartkanin merged 1 commit into
archlinux:masterfrom
codefiles:pyparted-partition-name
Sep 21, 2026
Merged

svartkanin merged 1 commit into
archlinux:masterfrom
codefiles:pyparted-partition-name

Conversation

@codefiles

Copy link
Copy Markdown
Contributor

See:

https://codeberg.org/dcantrell/pyparted/src/commit/650e4aeab89c080d5b64e503ad3d8bf326b8f4fc/src/parted/partition.py#L197

For GPT, Partition.name is the partition label. If a partition label is not set for a partition then Partition.name will be an empty string.

For MBR, Partition.name will be None for all partitions:

https://codeberg.org/dcantrell/pyparted/src/commit/650e4aeab89c080d5b64e503ad3d8bf326b8f4fc/src/parted/partition.py#L142-L147

@codefiles
codefiles requested a review from Torxed as a code owner September 6, 2026 18:25
@svartkanin
svartkanin merged commit f32bd74 into archlinux:master Sep 21, 2026
11 checks passed
@codefiles
codefiles deleted the pyparted-partition-name branch September 21, 2026 23:14
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.

2 participants