Skip to content

Commit

Permalink
Re-add sleep of 2 sec before looking for partitions (#172)
Browse files Browse the repository at this point in the history
This fixes issue #162 and #165. I refactored the timeout handling,
with #169 by increasing the existing timeout and removing the additional 2 sec
sleep, because the 2 sec sleep was not working in all cases.
Unfortunately, the increase alone is not sufficient, so I'm re-adding
the 2 sec sleep again.
  • Loading branch information
thomasmerx authored Jul 25, 2024
1 parent 61676eb commit e1ace42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/builder/step_map_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (s *stepMapImage) Run(_ context.Context, state multistep.StateBag) multiste
loop := strings.Split(path, "/")[2]
prefix := loop + "p"

time.Sleep(2 * time.Second)
// Look for all partitions of created loopback
var partitions []string
cPartitions := make(chan []string)
Expand Down

0 comments on commit e1ace42

Please sign in to comment.