Please clarify role of reserve:true for disk devices

Bug #2067000 reported by Josef Wolf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
New
Undecided
Unassigned

Bug Description

It is not clear from the documentation what semantics the preserve flag has for disk devices.

Is preserve:false required when
- partitions are added deleted?
- Partition size changes?
- partition type changes?
- filesystem on a partition re-created (maybe different filesystem)?

Thanks,

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

It's needed when you are changing the partition table (so adding a gpt partition table to a blank disk or converting gpt to dos or whatever). TBH this isn't very coherent -- the flag makes more sense when applied to a compound device like a RAID or a volume group, it's not like a curtin invocation is capable of removing a disk from your system!

Revision history for this message
Josef Wolf (jw-raven) wrote :

Sorry, but I'm still confused.

If I understand your comment correctly,
- changing size and/or type of partitions (e.g. fat->extX) does not require preserve:true on the disk device?
- adding/removing a partition also doesn't require preserve:true on the disk device??

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.