From 347851dca5187bd48b3940b298d5934a73c58c3d Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Wed, 2 May 2018 00:38:29 -0400 Subject: [PATCH] Mitigate macOS race condition in installer build --- Mac/BuildScript/build-installer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index 68868d97a65c43..d2b04d163ab4dc 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -1524,6 +1524,10 @@ def buildDMG(): shellQuote(os.path.join(WORKDIR, 'installer')), shellQuote(imagepath + ".tmp.dmg" ))) + # Try to mitigate race condition in certain versions of macOS, e.g. 10.9, + # when hdiutil fails with "Resource busy" + + time.sleep(10) if not os.path.exists(os.path.join(WORKDIR, "mnt")): os.mkdir(os.path.join(WORKDIR, "mnt"))