osy / HaC-Mini

Intel NUC Hades Canyon Hackintosh support
MIT License
1.22k stars 160 forks source link

USB installer patching fails due to permission issues #96

Closed sekunho closed 4 years ago

sekunho commented 5 years ago

Describe the bug I've tried with v2.3 and v2.2 with SIP enabled and both failed to install during running package scripts. However, disabling SIP will allow the installation to succeed.

Expected behavior It shouldn't matter if SIP is enabled/disabled.

Environment:

Additional context N/A

Logs Unfortunately do not have the log for when it failed anymore because I successfully got to install it in the end.

osy commented 5 years ago

Please still attach /var/log/install.log. Even if it’s successful in the end, the log is not erased, it is only appended to. I can still see the error.

sekunho commented 5 years ago

I see.

install.log

osy commented 5 years ago

The problem is here

2019-10-28 19:02:30+08 CFs-iMac installd[2126]: ./postinstall: rmdir: /Volumes/Install macOS Mojave: Resource busy
2019-10-28 19:02:30+08 CFs-iMac installd[2126]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.ocTH7L/Scripts/com.osy86.hacmini.patchinstaller.SxMGcL
2019-10-28 19:02:31+08 CFs-iMac installd[2126]: ./postinstall: find: /Volumes/Install macOS Mojave/.Spotlight-V100: Operation not permitted

For some reason, your install USB appeared to be empty after the install. My guess is it had something to do with the EFI unmounting. I'm not sure how it's related to SIP though. This may be an OSX bug.

sekunho commented 5 years ago

The computer I was using when it failed was an iMac. Making the installer on a Hackintosh works just fine though without disabling SIP.

hansthefox commented 4 years ago

Based on this issue I tried to use v2.3 and later versions, with different OSX (10.13, Mojave and Catalina, even I disable SIP), I found that I finally made it by Clover Bootloader to make an EFI folder first in the USB, then the Installer will finish the patch successfully. I don't know if there is any point to address this issue.