Skip to content

Commit

Permalink
fix: Don't wait for a UUID in an unformatted partition
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme committed Feb 3, 2024
1 parent db5e7fe commit 373fece
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 373fece

Please sign in to comment.