Comment 14 for bug 1800153

Revision history for this message
Scott Moser (smoser) wrote :

With regard to wiping all prep partitions...
We do have code that does this in helpers/pt_prep. Ie, the non-storage config path does this.
However, this is kind of a grey line here. If maas wants a partition wiped, then MAAS should send config that says it should be wiped.

If we bake in behavior to curtin of "Wipe all created (or existing?) PReP partitions", then
a.) that differs in behavior from all other partition types, causing inconsistency
b.) What happens at some later point when we for some reason need to *not* wipe those (dual boot or some other path). Curtin is then left in this unfortunate position of figuring out what MAAS wanted.

Why can't we have MAAS wipe this partition?