Closed thomasm2film closed 5 years ago
Hmm, works on iMac Pros for me..?
On Fri, 30 Nov 2018 at 8:54 pm, Thomas Knudsen notifications@github.com wrote:
Hi all,
Have been using this script for ages - but does not seem to work on the new MacBook Air's with 10.14.1 preinstalled and T2 chip. The script runs with no errors, but no user is created? Tested on my old MacBook Air with 10.14.1 - and it just works. Hmmm? Anyone? Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gregneagle/pycreateuserpkg/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/Am5H1bm1XzN-_4L-zoBJ0QHekpEz_JRtks5u0QBTgaJpZM4Y7WR2 .
-- Peter Wells +61 403 981 744 @peterwells Sent from a teeny lil computer 📱
So far, it only failed on the latest MacBook Air with 10.14.1. Anyone to test? Thanks
I have a DeployStudio workflow working to first install a factory fresh Mojave 10.14.1 install, then a second workflow which creates a local admin from a pkg created using this script and then runs further steps to configure the system.
This works fine for me on a MacBook Pro 2018 and a Mac mini late 2018 but I don't have any MacBook Air late 2018 models.
Due to the way DeployStudio works, the install of the pkg to create the user is being run in single-user mode and hence gets unlimited access i.e. root with no SIP. If your running it some other way maybe SIP is blocking you.
@thomasm2film Have you looked at /var/log/install.log
for clues? Definitely works on other Macs with T2 chips under 10.14.1...
Thanks Greg - I don't see any apparent errors?
2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: @(#)PROGRAM:Install PROJECT:Install-1000 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: @(#)PROGRAM:Installer PROJECT:Installer-934.1 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Hardware: MacBookAir8,1 @ 1.60 GHz (x 4), 8192 MB RAM 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Running OS Build: Mac OS X 10.14.1 (18B2107) 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: TMPDIR=/var/folders/dk/wbzz933d41504xss8v2jnk7r0000gn/T/ 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:2 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: SHELL=/bin/bash 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: HOME=/Users/m2film 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.VBqatr1JaU/Render 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Qf4u5wOVvG/Listeners 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: LOGNAME=m2film 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: XPC_SERVICE_NAME=com.apple.installer.1984 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: USER=m2film 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Env: XPC_FLAGS=0x0 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: create_admin-1.2-test Installation Log 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Opened from: /Volumes/USB DISK/create_admin-1.2-test.pkg 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Package Authoring Error: <background_scaling> has an unsupported MIME type: X-NSObject/NSNumber 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Package Authoring Error: <background_alignment> has an unsupported MIME type: X-NSObject/NSNumber 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: fileURLForURL = x-disc://USB%20DISK/create_admin-1.2-test.pkg 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: fileURLForURL = file://localhost/Volumes/USB%20DISK/create_admin-1.2-test.pkg 2018-11-30 10:49:50+01 M2HardersMBair Installer[1433]: Referenced component packages (1) trustLevel=100 2018-11-30 10:49:50+01 M2HardersMBair system_installd[368]: PackageKit: Install sandbox purging reclaimed Zero KB 2018-11-30 10:49:51+01 M2HardersMBair Installer[1433]: InstallerStatusNotifications plugin loaded 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Administrator authorization granted. 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: ================================================================================ 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: User picked Standard Install 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Choices selected for installation: 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Upgrade: "create_admin-1.2-test" 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: create_admin-1.2-test.pkg : com.m2film.createadmin : 1.2 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: ================================================================================ 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: It took 0.00 seconds to summarize the package selections. 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: -[IFPKGDerivedDocument sortedPackageLocations]: result = ( "file://localhost" ) 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Volumes/USB%20DISK/create_admin-1.2-test.pkg 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Set authorization level to root for session 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Will use PK session 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Using authorization level of root for IFPKInstallElement 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Starting installation: 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Configuring volume "Macintosh HD" 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Preparing disk for local booted install. 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Free space on "Macintosh HD": 85,11 GB (85113868288 bytes). 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: Create temporary directory "/var/folders/dk/wbzz933d41504xss8v2jnk7r0000gn/T//Install.1433dzahBF" 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: IFPKInstallElement (1 packages) 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: Adding client PKInstallDaemonClient pid=1433, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer) 2018-11-30 10:49:58+01 M2HardersMBair Installer[1433]: PackageKit: Enqueuing install with framework-specified quality of service (utility) 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: ----- Begin install ----- 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: request=PKInstallRequest <1 packages, destination=/> 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: packages=( "PKLeopardPackage <id=com.m2film.createadmin, version=1.2, url=file://localhost/Volumes/USB%20DISK/create_admin-1.2-test.pkg>" ) 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: Set reponsibility for install to 1433 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: Will do receipt-based obsoleting for package identifier com.m2film.createadmin (prefix path=/) 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: Extracting file://localhost/Volumes/USB%20DISK/create_admin-1.2-test.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/43A0BB81-81BD-4284-A900-C6A7851F5749.activeSandbox/Root, uid=0) 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: prevent user idle system sleep 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: suspending backupd 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/43A0BB81-81BD-4284-A900-C6A7851F5749.sandboxTrash for sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/43A0BB81-81BD-4284-A900-C6A7851F5749.activeSandbox 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/43A0BB81-81BD-4284-A900-C6A7851F5749.activeSandbox/Root (1 items) to / 2018-11-30 10:49:58+01 M2HardersMBair install_monitor[1442]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.qInkEK/Scripts/com.m2film.createadmin.9jaBGM 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: PackageKit: Writing receipt for com.m2film.createadmin to / 2018-11-30 10:49:58+01 M2HardersMBair installd[366]: Installed "create_admin-1.2-test" () 2018-11-30 10:49:58+01 M2HardersMBair install_monitor[1442]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr 2018-11-30 10:49:59+01 M2HardersMBair installd[366]: PackageKit: releasing backupd 2018-11-30 10:49:59+01 M2HardersMBair installd[366]: PackageKit: allow user idle system sleep 2018-11-30 10:49:59+01 M2HardersMBair installd[366]: PackageKit: Cleared permissions on Installer.app 2018-11-30 10:49:59+01 M2HardersMBair installd[366]: PackageKit: ----- End install ----- 2018-11-30 10:49:59+01 M2HardersMBair installd[366]: PackageKit: 1.1s elapsed install time 2018-11-30 10:49:59+01 M2HardersMBair installd[366]: PackageKit: Running idle tasks 2018-11-30 10:49:59+01 M2HardersMBair installd[366]: PackageKit: Removing client PKInstallDaemonClient pid=1433, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer) 2018-11-30 10:49:59+01 M2HardersMBair installd[366]: PackageKit: Done with sandbox removals 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: Removing temporary directory "/var/folders/dk/wbzz933d41504xss8v2jnk7r0000gn/T//Install.1433dzahBF" 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: Finalize disk "Macintosh HD" 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: Notifying system of updated components 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: **** Summary Information **** 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: Operation Elapsed time 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: ----------------------------- 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: zero 0.00 seconds 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: disk 0.02 seconds 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: install 2.03 seconds 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: -total- 2.05 seconds 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: IFDInstallController 3CE9730 state = 5 2018-11-30 10:50:00+01 M2HardersMBair Installer[1433]: Displaying 'Install Succeeded' UI. 2018-11-30 10:50:01+01 M2HardersMBair Installer[1433]: Package Removal: Package is not in downloads directory. Not offering removal. 2018-11-30 10:50:01+01 M2HardersMBair Installer[1433]: Package Removal: Package cannot be removed.
I'm having the same issue. Macbook Air with 10.14.1, no errors at all in the log. Thought it could have been due to a wacky password, but even a basic one doesn't seem to stick.
I don't have a 2018 MacBook Air, so I cannot reproduce (or address) this issue. Sorry! If anyone else figures it out, please let me know.
Does the account plist not get created at all? Those of you experiencing this issue will need to do a lot more investigation and data collection...
It seems as if my issue was the fact that the UID had been used already when I thought it was available. I didn't see anything in the log, but changing one parameter at a time pointed out where the wrong value was.
See the second paragraph in the README.
I will check the machine again. Tried creating a 502 and a 600 UID admin user - both fail. But not sure which UID is guaranteed to be available? Thanks
I had a similar problem on a late 2018 Mac Mini (with T2 chip) when SIP was enabled (default). The user plist file was not where it needs to be. I disabled it and reimaged (imagr startosinstall flow) and the user was created fine.
Closing this old issue.
Hi all,
Have been using this script for ages - but does not seem to work on the new MacBook Air's with 10.14.1 preinstalled and T2 chip. The script runs with no errors, but no user is created? Tested on my old MacBook Air with 10.14.1 - and it just works. Hmmm? Anyone? Thanks