From 373feceae7fb7d52a75f131ba2b4e3e40833ef36 Mon Sep 17 00:00:00 2001 From: Mateus Melchiades Date: Sat, 3 Feb 2024 19:43:19 -0300 Subject: [PATCH] fix: Don't wait for a UUID in an unformatted partition --- core/partition.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/partition.go b/core/partition.go index 5db6e01e..f2f1ebc5 100644 --- a/core/partition.go +++ b/core/partition.go @@ -304,6 +304,11 @@ func (part *Partition) WaitUntilAvailable() { for { _, err := os.Stat(part.Path) if !os.IsNotExist(err) { + // If Filesystem is not set, we're done + if part.Filesystem == "" { + return + } + if uuid, err := part.GetUUID(); err != nil && uuid != "" { return }