From e1ace42451b208497fa4cc5c26084408a1f1269a Mon Sep 17 00:00:00 2001 From: thomasmerx <11958162+thomasmerx@users.noreply.github.com> Date: Fri, 26 Jul 2024 00:02:55 +0200 Subject: [PATCH] Re-add sleep of 2 sec before looking for partitions (#172) 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. --- pkg/builder/step_map_image.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/builder/step_map_image.go b/pkg/builder/step_map_image.go index 8536b885..bd6167a7 100644 --- a/pkg/builder/step_map_image.go +++ b/pkg/builder/step_map_image.go @@ -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)