SpaceinvaderOne / Macinabox

Unraid docker image to help install MacOS vms
379 stars 72 forks source link

Permission denied on line 273 of /Macinabox/unraid.sh #35

Closed TheManchineel closed 3 years ago

TheManchineel commented 3 years ago

I'm trying to install macOS Big Sur (using Method 2). I can see the storage space on the array going down as macOS is downloaded but suddenly it looks like the download is completely deleted and I just get this:

/Macinabox/unraid.sh: line 273: /Macinabox/tools/FetchMacOS/BaseSystem/SharedSupport.dmg: Permission denied

Looking at unraid.sh, lines 273 says:

rm /Macinabox/tools/FetchMacOS/BaseSystem/SharedSupport.dmg
kprinssu commented 3 years ago

The actual issue was fixed by https://github.com/SpaceinvaderOne/Macinabox/commit/35d62d523bc1c7ee3c6ec37abf3bf53c097e6f37

Before the above merge, the unraid script would attempted to run /Macinabox/tools/FetchMacOS/BaseSystem/SharedSupport.dmg. Since the filesystem didn't have the execute permission, the shell bailed with the Permission denied.

You have a couple of options, build the macinabox Docker image from scratch or wait for @SpaceinvaderOne to update the image on Docker Hub.

Edit:

I pushed a custom build of the image (master branch as of today, January 9, 2021) to Docker Hub, https://hub.docker.com/repository/docker/kprinssu/macinabox

I do not plan to maintain the above image and use at your own caution/peril.

homek1978 commented 3 years ago

You can also get to the console in Unraid, go to the /Macinabox directory, edit unraid sh by vi vi unraid.sh and comment out the offending line. save and restart the docker container.