from Hacker News

Show HN: OSX-ISO – Create a bootable ISO of macOS from the installation app file

by busterc on 11/6/17, 7:25 PM with 44 comments

  • by beefhash on 11/7/17, 4:37 AM

    If you're interested in this, you may also be interested in OSX-KVM[1], which handles all the steps necessary to create an installation image that works with qemu/kvm.

    [1] https://github.com/kholia/OSX-KVM/

  • by bo0mb on 11/6/17, 9:13 PM

    Couldn't you just use createinstallmedia that comes bundled with those Installers instead of using a 3rd party tool?

    https://support.apple.com/en-us/HT201372

  • by cjensen on 11/6/17, 9:23 PM

    Disk Maker X [1] is a GUI which has been around a long time and does this. That said, it's closed source which could make a person justifiably twitchy when manipulating the installer.

    [1] http://diskmakerx.com

  • by ilikepi on 11/7/17, 12:18 AM

    From the README:

    > [...list of macOS installer apps...]

    > Mac users can download theses files from the App Store.

    This isn't really accurate. It's not possible to find and download macOS releases older than the current release. The only exception I was able to find a few months ago is if you've already downloaded them once previously while signed into the App Store on a different machine. I believe in that case an old release can be downloaded on a new machine from the Purchased list after signing in under the same account.

    EDIT: formatting; clarification

  • by abrowne on 11/6/17, 10:07 PM

    I just run the installer pointed at an external hard drive partition. You can boot from that and run the OS installers for the same or later versions but you also have the full OS if needed, including extra apps like Carbon Copy Cloner or whatever, not just the recovery environment.
  • by feelin_googley on 11/7/17, 3:38 AM

    Would this allow a user to have a "diskless" Mac?

    I create bootable media, e.g. USB sticks or SD cards, for PCs and RPis and I can thus run "diskless"; no disk access is required and the full system fits in RAM.

    I can insert the media into any available PC and use the computer, without disturbing anything on its HDD.

    This can also be very useful for emergencies where a computer with a HDD will not boot due to some problem with what is on the drive.

    Is this flexibilty possible with today's MacIntosh?

  • by maxscam on 11/6/17, 8:02 PM

    Does this support non osx hardware like a windows machine?
  • by neals on 11/7/17, 9:03 AM

    And then I can run it on a Virtual Box on Windows?
  • by wl on 11/6/17, 9:24 PM

    Code point U+F8FF is in the private use area. It only displays the Apple logo on Apple devices. Please do not use it on the web.
  • by rulusidaze on 11/6/17, 10:37 PM

    It's not clear to me why this was made. We'll ignore the question of why you would want an ISO (you can write a DMG direct to USB, and Jamf, DeployStudio, etc, require a PKG...), and move on to optimization.

    You can skip a lot of the convert/copy/asr steps by just using the hdiutil -srcfolder command, targeted to the createinstallmedia DMG, in conjunction with your target format. (This can be reproduced in Disk Utility as well, by the way.) As far as I can tell, you need about 3 commands here, and not a 189 line bash program with functions.

    As mentioned elsewhere, Disk Maker X is the way to go. Thanks for sharing your work though, even if it's a bit over-built.

  • by em3rgent0rdr on 11/7/17, 8:43 AM

    I find it a little absurd and obscene that Apple users will have to code free software projects for the sole purpose of satisfying basic user needs such as creating a bootable ISO. At some point it makes sense to leave the abusive relationship with apple and switch to an FOSS OS.