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

Unexpected behavior when installer already in DMG #21

Closed
epackorigan opened this issue Jan 31, 2019 · 5 comments
Closed

Unexpected behavior when installer already in DMG #21

epackorigan opened this issue Jan 31, 2019 · 5 comments
Milestone

Comments

@epackorigan
Copy link

If you use https://github.com/munki/macadmin-scripts/blob/master/installinstallmacos.py to build DMGs for the installer, and mount those as the source for macinbox as /Volumes/Install macOS Mojave, the one created by macinbox ends up as /Volumes/Install macOS Mojave 1, and the first is the one that ends up being unmounted at the end of the process, leaving the other around...

Can the following features be implemented:

  • Check to see if the installer is already in a DMG, and skip creating a new DMG to store the installer.
  • Check where the new installer is mounted, and unmount that one.
@bacongravy
Copy link
Owner

Hi, @epackorigan! Thanks for letting me know about this issue.

I am already working on some unrelated changes that will address your second request; the wrapper image for the installer will be correctly unmounted using its device node instead of its supposed mountpoint.

I do like your first request; it would be much more efficient if the script detected that the installer was already in a DMG, and skipped creating the wrapper. I'll use this issue to track adding that behavior.

@bacongravy
Copy link
Owner

With the changes in 73aa46b the correct installer disk image should now be getting unmounted.

@bacongravy
Copy link
Owner

bacongravy commented Feb 1, 2019

With the changes in 9623626, creation of the wrapper image is now skipped if the installer app is on a non-root volume.

I'll leave this issue open until I'm ready to release v3.2.0.

@bacongravy bacongravy added this to the v3.2.0 milestone Feb 1, 2019
@bacongravy
Copy link
Owner

With the changes in 1c5115e I have implemented a --installer-dmg option which allows you to specify an unmounted installer disk image (e.g. one created by installinstallmacos.py). The macinbox script will automatically mount and unmount this disk image as needed.

@bacongravy
Copy link
Owner

v3.2.0 has been released to rubygems.org. Closing.

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