gregneagle / pycreateuserpkg

Python tool to create macOS packages that create user accounts
Other
292 stars 44 forks source link

Using pycreateuserpkg with AutoDMG #48

Closed jelockwood closed 5 years ago

jelockwood commented 5 years ago

I have in the past successfully used an installer package created using the pycreateuserpkg script with AutoDMG. In fact it (and its predecessors) has been one of the few installer packages to historically have been trouble free with AutoDMG.

I am currently experimenting with creating a Catalina image using AutoDMG and a bog standard image does work - that is one with zero installers. I have tried adding an installer generated using the latest pycreateuserpkg and this seems to fail as when I boot from the end resulting Catalina installed via the AutoDMG image it still goes in to the Apple setup wizard indicating it has not successfully run.

I am under the impressions that signing of installers for Catalina might now been a very critical issue and was wondering if there is any advice on what one needs to do to successfully get to run as part of an AutoDMG image?

I am using the beta of AutoDMG to get Catalina support, my source Catalina is in an image generated using Greg's installinstallmacos script. (AutoDMG needs it to be in a disk image.) As mentioned I am using the latest pycreateuserpkg and I just double checked and refreshed my copy and built another new installer pkg.

gregneagle commented 5 years ago

Not sure why you think creating a user via a package will stop Apple's Setup Assistant from running. It's not clear at all from your description if the user account is properly created. In my testing, the current pycreateuserpkg code works fine to create users on Catalina.

gregneagle commented 5 years ago

(reading your issue again:) I no longer use AutoDMG and have no idea if AutoDMG has additional hurdles to jump. I doubt I'll have the time to test (and have no internal motivation to do it). If someone identifies a specific issue with pycreateuserpkg + AutoDMG + Catalina and has a fix, I'd be happy to look at that.

jelockwood commented 5 years ago

I have subsequently confirmed your pkg does run and successfully create the user. However it does not create the file which marks it as having previously run Apple Setup Assistant so that was still launching after booting.

I had perhaps mistakenly thought your pkg also disabled the setup assistant. I am closing this issue.

gregneagle commented 5 years ago

I have always used a purpose-specific package to install the correct file(s) to disable the setup assistant. Many examples available on the web, and here's one for use with munkpkg: https://github.com/munki/munki-pkg/tree/master/SuppressSetupAssistant

Consider that some orgs might want to create a consistent local admin account before deployment, but still want the Setup Assistant to run to allow the actual user to create their own local user account.