Bug 1018582

Summary: RFE: separate the kickstart btrfs command --noformat and --useexisting parameters
Product: [Fedora] Fedora Reporter: Gene Czarcinski <gczarcinski>
Component: pykickstartAssignee: David Cantrell <dcantrell>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: bcl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-26 12:48:48 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:

Description Gene Czarcinski 2013-10-13 16:01:35 UTC
Description of problem:
Currently, specifying either --noformat or --useexisting results in both --noformat and --useexisting being passed as parameters which prevents their use for different purposes.

The intent is to use (with anaconda) --noformat on a subvol command to indicate just adding the entry to /etc/fstab and using --useexisting to cause the subvol to be destroyed and then (re) created [the equivalent of a "reformat"].

It would be nice if this was in Fedora 20 but I see that as hopeless.

Comment 1 David Cantrell 2019-04-26 12:48:48 UTC
For btrfs, the --useexisting option is the same as --noformat.

https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#chapter-2-kickstart-commands-in-fedora

I don't know enough about btrfs to even know if it's possible to do what you're describing.  Even if it is, pykickstart is not the right component to report the bug.  pykickstart just parses the kickstart file and anaconda uses it.  Anaconda would pass on storage work to blivet, but the right place to ask would be anaconda.

btrfs support is marked as deprecated in pykickstart, so it might be a good time to move off btrfs anyway.