diff --git a/internal/os/disk/api.go b/internal/os/disk/api.go index 6abcde08..5f34b682 100644 --- a/internal/os/disk/api.go +++ b/internal/os/disk/api.go @@ -118,7 +118,7 @@ func (APIImplementor) InitializeDisk(diskID string) error { } func (APIImplementor) PartitionsExist(diskID string) (bool, error) { - cmd := fmt.Sprintf("Get-Partition | Where DiskNumber -eq %s", diskID) + cmd := fmt.Sprintf("Get-Partition | Where DiskNumber -eq %s | Where Type -ne Reserved", diskID) out, err := exec.Command("powershell", "/c", cmd).CombinedOutput() if err != nil { return false, fmt.Errorf("error checking presence of partitions on disk %s: %v, %v", diskID, out, err)