The macOS 10.12 link (and probably the others) on Apple's official download page ends up downloading InstallOS.dmg, which in turn contains InstallOS.pkg, which is fairly troublesome to convert to the Install macOS Sierra.app that createinstalliso expects.
What's the recommended approach for these?
From my own testing, I ended up being able to create the iso after following the steps below (though not sure it actually runs yet):
- Open
InstallOS.dmg to get access to InstallOS.pkg
- Unpack
InstallOS.pkg and then InstallOS.pkg/Payload using instructions in https://stackoverflow.com/questions/11298855/how-to-unpack-and-pack-pkg-file (or maybe just pkgutil --expand-full?)
- Copy
InstallESD.dmg to Install XXX.app/Contents/SharedSupport
- Run
xattr -cr Install XXX.app to allow codesign to work
- Run
./createinstalliso
The macOS 10.12 link (and probably the others) on Apple's official download page ends up downloading
InstallOS.dmg, which in turn containsInstallOS.pkg, which is fairly troublesome to convert to theInstall macOS Sierra.appthatcreateinstallisoexpects.What's the recommended approach for these?
From my own testing, I ended up being able to create the iso after following the steps below (though not sure it actually runs yet):
InstallOS.dmgto get access toInstallOS.pkgInstallOS.pkgand thenInstallOS.pkg/Payloadusing instructions in https://stackoverflow.com/questions/11298855/how-to-unpack-and-pack-pkg-file (or maybe justpkgutil --expand-full?)InstallESD.dmgtoInstall XXX.app/Contents/SharedSupportxattr -cr Install XXX.appto allow codesign to work./createinstalliso