Bug 2117048

Summary: Partition type may be unexpectedly changed when using libparted
Product: [Fedora] Fedora Reporter: Brian Lane <bcl>
Component: partedAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 37CC: awilliam, bcl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: parted-3.5-6.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-13 16:39:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2009538    

Description Brian Lane 2022-08-09 20:37:29 UTC
Description of problem:
parted 3.5 changed the way that flags are handled in order to support the ability to set arbitrary partition types and guids. In normal use there should be no issues, but if a user of the library calls ped_partition_set_system after the initial partition setup the partition type will be changed to the default for the filesystem, possibly removing the type set based on the flags.

Version-Release number of selected component (if applicable):
parted-3.5-5

patches: 
https://alioth-lists.debian.net/pipermail/parted-devel/2022-August/005819.html

Comment 1 Fedora Blocker Bugs Application 2022-08-10 15:52:40 UTC
Proposed as a Freeze Exception for 37-beta by Fedora user bcl using the blocker tracking app because:

 I'd prefer to get this in before release. AFAIK it is only a problem for non-Fedora libparted users but it'd be safer if it was included.

Comment 2 Adam Williamson 2022-08-10 17:54:50 UTC
Freeze isn't for two weeks, so if you backport and build it now it'll go in.

Comment 3 Fedora Update System 2022-08-11 16:44:09 UTC
FEDORA-2022-f6fa072017 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f6fa072017

Comment 4 Fedora Update System 2022-08-13 16:39:20 UTC
FEDORA-2022-f6fa072017 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.