I want to test Sierra before fully installing it on my computer by creating a Sierra iso installer, which I can use on Virtual Box. When I attempt the first step below (mount the installer image) I get an error from hdutil that the resource is busy. Does anyone have suggestions on how to safely do this?
error: hdiutil: attach failed - Resource busy
steps:
Mount the installer image
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify - nobrowse -mountpoint /Volumes/install_appConvert the boot image to a sparse bundle
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/SierraIncrease the sparse bundle capacity to accommodate the packages
hdiutil resize -size 8g /tmp/Sierra.sparseimageMount the sparse bundle for package addition
hdiutil attach /tmp/Sierra.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_buildRemove Package link and replace with actual files
rm /Volumes/install_build/System/Installation/Packages cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/Unmount the installer image
hdiutil detach /Volumes/install_app
Thanks for your time!
christinas-MacBook-Pro:shell_scripts christina$ ./makeSierraISO hdiutil: attach failed - Resource busy ............................................................................................................................. created: /Users/christina/shell_scripts/macOS_Sierra_10.12.0.cdr.dmg /dev/disk4 Apple_partition_scheme– Christina Mitchell Oct 23 '16 at 16:58/dev/disk4s1 Apple_partition_map /dev/disk4s2 Apple_HFS /Volumes/iso Validating target...done Could not recognize "/Volumes/esd/BaseSystem.dmg" as an image file Could not get source volume name rm: /Volumes/OS X Base System/System/Installation/Packages: No such file or directory cp: /Volumes/esd/Packages: No such file or directory cp: directory /Volumes/OS X Base System does not exist hdiutil: detach failed - No such file or directory– Christina Mitchell Oct 23 '16 at 17:01