mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-12 13:01:14 +01:00
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:
parent
f863498ff6
commit
a3a2aa8ef3
@ -57,9 +57,7 @@ func zeroPartition(devname string) (err error) {
|
|||||||
|
|
||||||
defer part.Close() //nolint:errcheck
|
defer part.Close() //nolint:errcheck
|
||||||
|
|
||||||
_, err = part.Wipe()
|
return part.FastWipe()
|
||||||
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func systemPartitionsFormatOptions(label string) *FormatOptions {
|
func systemPartitionsFormatOptions(label string) *FormatOptions {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user