Bug 2215082

Summary: [RFE] For the 'sfdisk' man page to further clarify the expected behavior and intended use of the -d option
Product: Red Hat Enterprise Linux 9 Reporter: asshriva <asshriva>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: MODIFIED --- QA Contact: Radka Brychtova <rskvaril>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: mescanfe, nweddle, rhel-docs
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: util-linux-2.37.4-12.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description asshriva 2023-06-14 17:09:35 UTC
Document URL: sfdisk man -d option

Section Number and Name: 

Describe the issue: RFE for the 'sfdisk' man page to further clarify the expected behavior and intended use of the -d option.

Suggestions for improvement: 
Dump details included in sfdisk's -d dump option.

Additional information: 

Cu in 03520144 used -d option to dump the partition map from one of the drives to the rest, this reused the PARTUUID from original disk causing OS install to fail. Cu requesting to add details of this option included in dump.

Comment 5 Karel Zak 2023-06-21 09:00:12 UTC
(In reply to asshriva from comment #0) 
> Cu in 03520144 used -d option to dump the partition map from one of the
> drives to the rest, this reused the PARTUUID from original disk causing OS
> install to fail. Cu requesting to add details of this option included in
> dump.

Not sure if I fully understand. Does it mean that the user has tied to duplicate
the partition table on the same machine?

I agree that we can add some warning about duplicate partition types and UUIDs
to the man page. I have committed:
https://github.com/util-linux/util-linux/commit/60c81b3272d03959dfee465f1ecaf40ba3e70cb3