Auto-Dmg .PKG Files

al786
New Contributor III

Hey,

Trying to do a "base image" of 10.13 using the new AutoDMG. Everything installs correctly (the laptops all had High Sierra already) but the .PKG files I drag into AutoDMG before building the image do not seem to install along with the OS when I image the laptops. I was hoping to include Office '16 as well as a CreateAdminUser.PKG to prepare for enrollments. Do you have to have the .pkgs in a particular location prior to dragging them into AutoDMG ?

5 REPLIES 5

mm2270
Legendary Contributor III

This might not work with 10.13, not sure. So many things we used to be able to do with 10.12 and lower simply don't work anymore for High Sierra, so that might be the issue. I know I've been able to build a 10.12.6 image that included our Microsoft Office 2016 VL install, and one to create the local admin account. So it works on 10.12. I have not tried the same with 10.13 though.

Nix4Life
Valued Contributor

@al786 CreateAdminUser.PKG no longer works with 10.13. Here is pycreateuserpkg by Greg with a write up by Rich. A workflow I am using which will work for both Munki/Jamf is Greg's bootstrappr and Rich's First-boot-package-install-generator. It works for current hardware restoring .dmgs and will work with the new T2 Hardware (until Apple releases a solution)

al786
New Contributor III

Thanks! But how about the other installers? I've tried free .PKG installers like for Slack etc.. and none of my .PKG files seem to install when I build with AutoDMG.

Nix4Life
Valued Contributor

@al786 From what I've read you are not alone. Haven't used autodmg lately, but you may want to try the #autodmg channel in macadmins slack.

al786
New Contributor III

Thanks for the suggestions, turns out I was able to find an imaging solution. As long as the Mac already has 10.13 (which many do for us) - most of the Macs we get are either stock with 10.13 or I need to re-image our loaner machines.

I used Auto DMG to make an apfs.dmg and dragged a bunch of packages I made with composer (I set them to install to /users/shared) and I made one package with the "first boot installer" app to create our local admin account.

  • [note for some reason any package that I try to make to place these installers on our user desktop don't seem to do anything so I just made them to be in /users/shared since that exists prior to that first boot script.

Instead of the actually drive/partition I used diskutil to find the "container" path of the Macs that are connected via target disk mode and thunderbolt cable-

sudo asr restore --source /path/to/our/AutoDmg1013Image.dmg --target /dev/disk3 --erase --noprompt --noverify

-they image in about 45-60 seconds and then I just run quick add from /users/shared .