Home Forums Software InstaDMG Multiple createUser packages

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #377299
    Per Olofsson
    Participant

    I 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?

    #377309
    larkost
    Participant

    That 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).

    #377311
    Per Olofsson
    Participant

    Alright, 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?

    #377907
    Ferry
    Participant

    I have been wrestling with the same issue.
    How do you add more bundles to the exclude array?

    #377909
    Per Olofsson
    Participant

    instadmg.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]

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed