From 13a4e47efe14e7705806d420ee5d47ce57109819 Mon Sep 17 00:00:00 2001 From: Brad Ackerman Date: Sat, 1 Aug 2020 21:13:14 -0700 Subject: [PATCH] Increase wait time for device to be created. --- builder/azure/chroot/diskattacher_freebsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/azure/chroot/diskattacher_freebsd.go b/builder/azure/chroot/diskattacher_freebsd.go index bc9ffa20e..ecfc5cf60 100644 --- a/builder/azure/chroot/diskattacher_freebsd.go +++ b/builder/azure/chroot/diskattacher_freebsd.go @@ -36,7 +36,7 @@ func (da diskAttacher) WaitForDevice(ctx context.Context, lun int32) (device str if matches := devRegex.FindStringSubmatch(line); matches != nil { // If this function immediately returns, devfs won't have // created the device yet. - time.Sleep(100 * time.Millisecond) + time.Sleep(1000 * time.Millisecond) return fmt.Sprintf("/dev/da%s", matches[1]), nil } }