diff --git a/internal/os/disk/api.go b/internal/os/disk/api.go index 79b42c8d..29804aa6 100644 --- a/internal/os/disk/api.go +++ b/internal/os/disk/api.go @@ -158,7 +158,7 @@ func (DiskAPI) InitializeDisk(diskNumber uint32) error { } func (DiskAPI) PartitionsExist(diskNumber uint32) (bool, error) { - cmd := fmt.Sprintf("Get-Partition | Where DiskNumber -eq %d", diskNumber) + cmd := fmt.Sprintf("Get-Partition | Where DiskNumber -eq %d | Where Type -ne Reserved", diskNumber) out, err := runExec(cmd) if err != nil { return false, fmt.Errorf("error checking presence of partitions on disk %d: %v, %v", diskNumber, out, err)