Home Forums Software InstaDMG createUser how do I run it??

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #378925
    nobrainer
    Participant

    I’m trying to use the createuser pkg file, but I’m not sure how to get it to run with instadmg. I’ve modified the USERDATA and tried leaving the PKG file in Addons, InstaUp2DatePackages, and CustomPKG – but it doesn’t seem to run from any of them. Am I missing a step?

    #378937
    Rusty Myers
    Participant

    How are you running InstaDMG? Do you run the –process flag from InstaUp2Date or do you just run ./instadmg.bash? If your running InstaUp2Date with the process flag, you need to add the createUser.pkg to the catalog that you call. If your running just the instadmg.bash script, you need to add it into the custom packages folder under a numbered folder (I think).

    Check this thread, it has some mentioned of guides and videos that may help you.
    https://www.afp548.com/forum/viewtopic.php?showtopic=26912

    #378947
    nobrainer
    Participant

    I’m running the Up2date w/ –process…

    I modified the 10.6vanilla catalog file as follows…

    I tried modifying the 10.6 vanilla catalog file, adding the 2 packages to “3rd party software”

    System Settings:

    Third Party Software:

    Create User createUser.pkg sha1:47a9975d928ed9bc0b5b46639cd76c5c448fac0d
    Clear Registration clearReg.pkg sha1:b0ba0f6bfd26956562e286bbcdfa8f78dd3722eb

    Software Settings:

    ———————————–

    then I get this… from: sudo ./instadmg/AddOns/InstaUp2Date/instaUp2Date.py 10.6_vanilla –process

    Traceback (most recent call last):
    File “./instadmg/AddOns/InstaUp2Date/instaUp2Date.py”, line 675, in
    main()
    File “./instadmg/AddOns/InstaUp2Date/instaUp2Date.py”, line 658, in main
    thisController.parseFile(catalogFilePath)
    File “./instadmg/AddOns/InstaUp2Date/instaUp2Date.py”, line 237, in parseFile
    raise Exception(‘Error in config file: %s line number: %i\n%s’ % (fileLocation, lineNumber, line)) # TODO: improve error handling
    Exception: Error in config file: /Users/jwojda/instadmg/AddOns/InstaUp2Date/CatalogFiles/10.6_vanilla.catalog line number: 25
    Create User createUser.pkg sha1:47a9975d928ed9bc0b5b46639cd76c5c448fac0d

    #378959
    sgstuart
    Participant

    Hi nobrainer,
    I would put the under the “System Settings” not “3rd party” and I would put the clearReg first, and then the createUser. See how just doing that works for you.

    Also if what you pasted below is directly out of your catalog, you appear to have a space instead of a tab in between each section.

    you pasted

    Create User createUser.pkg sha1:47a9975d928ed9bc0b5b46639cd76c5c448fac0d
    Clear Registration clearReg.pkg sha1:b0ba0f6bfd26956562e286bbcdfa8f78dd3722eb

    should be

    Clear Registration clearReg.pkg sha1:b0ba0f6bfd26956562e286bbcdfa8f78dd3722eb
    Create User createUser.pkg sha1:47a9975d928ed9bc0b5b46639cd76c5c448fac0d

    Which could explain the error
    Exception: Error in config file

    Thanks,
    Steven Stuart

    #378981
    larkost
    Participant

    A few comments:

    – It does not really matter if this is in “System Settings” or another section, I would put it in “System Settings” but in this case it is unlikely to interfere with other things (or be relied upon by others).

    – If you are getting a message about an error in the config file, the problem might well be the spaces-vs-tabs issue. To emphasize this the format is:
    [code][tab][tab][tab][/code]

    The user-visible-name can have spaces, or anything else (other than tabs in it).

    – Rather than change the vanilla catalog file, create your own and include the vanilla catalog file. That way when the vanilla file gets updated you don’t have to make changes to your file to egt the updates. A line like this would work:

    [code]include-file: 10.6_vanilla[/code]

    #378990
    nobrainer
    Participant

    Trying these changes – is there a way to do a faster build of the image? It’s taking about an hour+ or so between attempts… the –process part, or is that something that just needs to happen?

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

Comments are closed