- This topic has 4 replies, 3 voices, and was last updated 15 years, 2 months ago by
Per Olofsson.
-
AuthorPosts
-
October 7, 2009 at 7:49 am #377299
Per Olofsson
ParticipantI was about halfway through posting about how createUser fails and installs accounts on my admin workstation instead of the deployment image, when I found this little gem in instadmg.bash:
[code]# Bundle identifier codes to exclude from the chroot system
CHROOT_EXCLUDED_CODES=(“edu.uc.daap.createuser.pkg”)[/code]
That explains why it’s failing, since I changed the bundle identifier – I’m creating multiple accounts, with one package for each account, and there were complains in the installer logs (since edu.uc.daap.createuser.pkg had already been installed).So, what’s the correct way to install multiple users?
October 8, 2009 at 1:16 am #377309larkost
ParticipantThat exclude is a hack on my part… it is (low) on my list to create a “createUser” factory so we aren’t going about this in a hackish way, and re-do it so it is more complete. But since createUser’s actions all happen in the scripts anyways, you can go ahead and use the same id for multiple installs. You just won’t get nice receipts for it (which you wouldn’t anyways, since we are not injecting the script-changed files).
October 8, 2009 at 2:40 pm #377311Per Olofsson
ParticipantAlright, adding my bundles to the exclude array works fine for now. A slightly cleaner way might be to add flags to the package filename (e.g. createUser (nochroot).pkg), so you don’t have to edit instadmg.bash.
On a related note, can you confirm that client installers created by ARD (bundle ID com.apple.pkg.RemoteDesktopClient) also need to be excluded from chroot?
February 1, 2010 at 12:20 pm #377907Ferry
ParticipantI have been wrestling with the same issue.
How do you add more bundles to the exclude array?February 1, 2010 at 1:27 pm #377909Per Olofsson
Participantinstadmg.bash, CHROOT_EXCLUDED_CODES, line 85:
[code]Index: instadmg.bash
===================================================================
— instadmg.bash (revision 245)
+++ instadmg.bash (working copy)
@@ -82,7 +82,7 @@
ALLOWED_INSTALLER_DISK_NAMES=(“Mac OS X Install Disc 1.dmg” “Mac OS X Install DVD.dmg”)# Bundle identifier codes to exclude from the chroot system
-CHROOT_EXCLUDED_CODES=(“edu.uc.daap.createuser.pkg”)
+CHROOT_EXCLUDED_CODES=(“edu.uc.daap.createuser.pkg” “se.gu.createUser_admin.pkg” “se.gu.createUser_hfds.pkg” “se.gu.kickstart_ARD.pkg”)#
HOST_MOUNT_FOLDER=” # Enclosing folder for the base image mount point, and othes if not using chroot
Index: AddOns/createUser/README.txt
===================================================================[/code] -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed