fix: use fast wipe for upgrade

As part of bootloader refactoring `go-blockdevice` was used for wiping
partitions in #7329, but used standard wipe which could be fast/slow
depending on the blockdevice support. Switch to using fast-wipe for
partitions. This should not affect `wipe` option in machineconfig.

Fixes: #7531

Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
Noel Georgi 2023-07-27 15:00:57 +05:30
parent f863498ff6
commit a3a2aa8ef3
No known key found for this signature in database
GPG Key ID: 21A9F444075C9E36

View File

@ -57,9 +57,7 @@ func zeroPartition(devname string) (err error) {
defer part.Close() //nolint:errcheck
_, err = part.Wipe()
return err
return part.FastWipe()
}
func systemPartitionsFormatOptions(label string) *FormatOptions {