Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support creating an installer from InstallOS.pkg #12

Open
madsmtm opened this issue Nov 13, 2024 · 2 comments
Open

Support creating an installer from InstallOS.pkg #12

madsmtm opened this issue Nov 13, 2024 · 2 comments

Comments

@madsmtm
Copy link
Contributor

madsmtm commented Nov 13, 2024

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):

  1. Open InstallOS.dmg to get access to InstallOS.pkg
  2. 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?)
  3. Copy InstallESD.dmg to Install XXX.app/Contents/SharedSupport
  4. Run xattr -cr Install XXX.app to allow codesign to work
  5. Run ./createinstalliso
@jgrisham
Copy link

jgrisham commented Nov 20, 2024

Can you just skip steps 3-5 and just directly use the InstallESD.dmg image? (Iirc, it is bootable EFI-compatible ISO and can be burned to a DVD or a USB drive.)

Using Windows 11 and 7-Zip, for example, simply re-naming InstallOS.pkg to InstallOS.xar allowed opening it directly in 7-Zip, which then allowed extracting the InstallESD.dmg file. (The InstallOS.pkg file itself was obtainable from the downloaded disk image file using HFSExplorer and OpenJDK.)

  • On macOS, an application such as Suspicious Package would also get this done.
  • Linux and macOS Terminal methods should also be farily straightforward.

Tl;dr:

Renaming InstallESD.dmg to InstallESD.iso should allow it to be used directly with a much wider array of software.

@madsmtm
Copy link
Contributor Author

madsmtm commented Nov 20, 2024

I had no idea what InstallESD.dmg was, but cool!

Are you sure that it's not necessary to invoke createinstallmedia?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants