munki / macadmin-scripts

Scripts of possible interest to macOS admins
Other
2.33k stars 523 forks source link

hdutil: create failed - Resource busy #36

Closed gsprague closed 5 years ago

gsprague commented 5 years ago

installmacosinstall.py is giving the following error:

Product downloaded and installed to /Users//Install_macOS_10.15.1-19B88.sparseimage Making read-only compressed disk image containing Install macOS Catalina.app... ............................................................................................................................... hdiutil: create failed - Resource busy Command '[u'/usr/bin/hdiutil', u'create', u'-fs', u'HFS+', u'-srcfolder', u'/private/tmp/dmg.Td0UZK/Applications/Install macOS Catalina.app', u'./Install_macOS_10.15.1-19B88.dmg']' returned non-zero exit status 1

gregneagle commented 5 years ago

Sounds like a local issue -- perhaps AV software poking at the disk image as it is being created? I don't know if it possible to get more logging info from hdiutil...

gsprague commented 5 years ago

@gregneagle Yep, CrowdStrike was causing this issue. All set now. Thanks!