libparted needs support for setting the type GUID to an arbitrary value for gpt labels

Bug #1666475 reported by Łukasz Zemczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
parted (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

libparted tries to be as much label-agnostic as possible, but sometimes it's required that a selected partition has the partition type set to an *exact* GUID value. Currently the only way to modify the type GUID for parts in the gpt label is to change the partition-specific flags which in the end causes the GUID to change. There are no API calls that would allow to set the type to an arbitrary value.

This is a bit troublesome as other partitioning tools like sfdisk or sgdisk allow setting the GUID to any acceptable value.

It would be best if libparted gained the same ability as it's bindings are available for multiple languages.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I wanted to fill in a bug upstream but I can't seem to be able to find the official upstream bugtracker...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package parted - 3.6-3

---------------
parted (3.6-3) unstable; urgency=medium

  * align-new-partitions-on-fresh-disks.patch:
    - Fix NULL dereference on error path.
    - Don't try to align partitions if no constraint was passed.

 -- Colin Watson <email address hidden> Mon, 26 Jun 2023 23:34:57 +0100

Changed in parted (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.