fix adding a partition to an existing raid

found this by mistake by accident when trying to test something else...
This commit is contained in:
Michael Hudson-Doyle 2021-08-03 14:09:38 +12:00
parent 5d566aebe0
commit 3152e5ce13
1 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,8 @@ class FilesystemManipulator:
if disk.type == "disk":
disk.preserve = False
disk.wipe = 'superblock-recursive'
elif disk.type == "raid":
disk.wipe = 'superblock-recursive'
needs_boot = self.model.needs_bootloader_partition()
log.debug('model needs a bootloader partition? {}'.format(needs_boot))