From a3a2aa8ef3ff3ece185f2445c0caebb4a0ec52d5 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Thu, 27 Jul 2023 15:00:57 +0530 Subject: [PATCH] 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 --- internal/pkg/partition/format.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/pkg/partition/format.go b/internal/pkg/partition/format.go index 536734ff4..a94e3f2bb 100644 --- a/internal/pkg/partition/format.go +++ b/internal/pkg/partition/format.go @@ -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 {