Home Forums Software InstaDMG CreateUser and ClearReg.pkg

Viewing 15 posts - 1 through 15 (of 33 total)
  • Author
    Posts
  • #378921
    bdawg20000
    Participant

    I am currently building a new image with a Mac OS 10.6.3 DVD and then running the 10.6.4 combo update to bring the system up to 10.6.4. I then have 17 other packages installed in the build train and everything is working great. However, I would really like to be able to create 3 local users on the machine, get rid of the system setup wizard and have ARD enable when it gets to the login screen. So far when i have included the createUser package and the ClearReg.pkg it will boot me to the login screen but my user accounts don’t work. I then booted from a DVD to try and rest the passwords thinking that maybe the password hash didn’t work correctly but there are no users listed except for root to reset the password so it leads me to believe that the CreateUser.pkg isn’t working in the build train. Does anyone have any insight on why the users aren’t being created?

    Thanks

    Brian Hubbard

    #378926
    nobrainer
    Participant

    I guess I kind of have the same problem.

    I’ve tried placing the createuser.pkg in installerfiles\custompkg as well as installerfiles\instaup2datepackages and neither seem to work for the user accounts.

    I don’t get the registration startup – so I think clearReg is working.

    #378927
    Allister Banks
    Participant

    Hey Guys,
    Just need two pieces of info from your install or debug logs, the version(not 1.6b1, instead the revision number, like r315) and the relevant step where the package is being installed. Also of help would be to know how you’re creating your createUser package. It sounds like clearReg is working for y’all, but in the case of three local users, you could probably get all three on there if you specify that they have different UID’s.
    nobrainer, are you putting it in a numbered folder, for example InstallerFiles\CustomPackages\01\createUser.pkg
    Please also let me know how the guide could be improved, it needs to be revised soon. Thanks,

    Allister

    #378928
    sgstuart
    Participant

    Hi Brian and nobrainer,
    Both of these are working for the most part for me. I will be creating a new Topic for my 1 issue.
    If you are using the InstaUp2Date. You should place both packages into the InastallerFiles/InstaUp2DatePackages folder. In the Catalog itself, you want to have just the package name (no path) clearReg.pkg and createUser.pkg. You will have any type of name before that then a tab, and then after it a tab and then the sha1 number.

    I am assuming that you understand how to edit the createUser.pkg contents. I can help there too if needed, except for the 1 part I will be asking in the next topic.

    Thanks,
    Steven Stuart

    #378936
    nobrainer
    Participant

    Allister, I’m using 309…and I’m not putting in 01 (02, 03, 04). Should I?
    As far as updating the doc file – I think just expanding on stuff… the addons, how to get extra pkg files working, if there is modifying of the catalog file…

    SGStuart, Following the guide, I just modified the userdata file with the info I want, and then placed the pkg in the folder. What catalog file are you referring to?

    Thank you for the help!

    #378938
    bdawg20000
    Participant

    I am using Revision 261 and I am using just InstaDMG no instaup2date and I have tried putting the CreatUser.pkg in the 01 custom package folder and i have tried it in my last folder of the build chain but it makes no difference.

    Thanks

    Brian

    #378941
    nobrainer
    Participant

    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

    #378942
    bdawg20000
    Participant

    nobrianer – where did you get rev 309. i tried getting it from the /trunk/instaDMG.bash but when trying to run that i keep getting a command not found error in terminal

    Thanks

    Brian

    #378943
    nobrainer
    Participant

    i downloaded it a few days ago from the update thing.

    svn checkout http://instadmg.googlecode.com/svn/trunk instadmg

    I had to run it twice.

    now I’m on 315.

    #378944
    bdawg20000
    Participant

    Great thanks!!! I got the new revision of InstaDMG and I am trying it now. i will update with the results once the build is complete. Once question though for hte create user package. in the USERDATA file when it says leave blank does that mean just leave that secition commented out if you just want the defaults?

    #378945
    nobrainer
    Participant

    I believe you just don’t put anything in – erase everything between the ” “, but I put the PW in there as I need it to be specific for all systems.

    #378948
    bdawg20000
    Participant

    what about for the GID and UID, etc?

    #378949
    nobrainer
    Participant

    I left as defaut (grabs next available)

    #378953
    bdawg20000
    Participant

    here is the section of the logs for when it is working on the 3 folders for my users to be created. The first one i tried chaning the post flight script that it was checking for OS 10.6 rather than 10.5. The image is finishing up now and I will post the results in a bit once the image is on the machine but it doesn’t look promising.

    Working on folder 18 (11:42:18)
    Installing createMac_User.pkg
    Package name is createUser
    Installing at base path /private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc
    PHASE:Preparing for installation…
    -[IFPKGDerivedDocument sortedPackageLocations]: result = (
    “file://localhost”
    )
    -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
    -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/instaDMG/InstaDMG/./InstallerFiles/CustomPKG/18/createMac_User.pkg
    Will use PK session
    Starting installation:
    PHASE:Preparing the disk…
    Configuring volume “InstaDMG”
    Preparing disk for local booted install.
    Free space on “InstaDMG”: 308.78 GB (308783947776 bytes).
    Create temporary directory “/var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-//Install.54071TNM47k”
    IFPKInstallElement (1 packages)
    PHASE:Preparing createUser…
    PHASE:Waiting for other installations to complete…
    PackageKit: —– Begin install —–
    PackageKit: request=PKInstallRequest <1 packages, destination=/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc>
    PackageKit: packages=(
    “PKJaguarPackage
    )
    PHASE:Configuring the installation…
    STATUS:
    PHASE:Validating packages…
    %8.379721
    PHASE:Validating packages…
    %15.253985
    PHASE:Validating packages…
    %21.144751
    PHASE:Validating packages…
    %26.251802
    PHASE:Validating packages…
    %30.719161
    PHASE:Validating packages…
    %34.662099
    PHASE:Validating packages…
    %38.166130
    PHASE:Validating packages…
    %41.302251
    PHASE:Validating packages…
    %44.123853
    PHASE:Validating packages…
    %46.677628
    PHASE:Validating packages…
    %48.998520
    PHASE:Validating packages…
    %51.118239
    PackageKit: Extracting /Volumes/instaDMG/InstaDMG/InstallerFiles/CustomPKG/18/createMac_User.pkg/Contents/Archive.pax.gz (destination=/private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc/.PKInstallSandbox-tmp/Root, uid=0)
    PHASE:Writing files…
    %53.060765
    PackageKit: Shoving /private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc/.PKInstallSandbox-tmp/Root (0 items) to /tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc
    PackageKit: Executing script “./postflight” in /Volumes/instaDMG/InstaDMG/InstallerFiles/CustomPKG/18/createMac_User.pkg/Contents/Resources
    PHASE:Running package scripts…
    %55.381209
    ./postflight: OS 10.6.4 not supported
    PackageKit: Install Failed: PKG: post-flight scripts for “edu.uc.daap.createuser.pkg”
    Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x100410690 “An error occurred while running scripts from the package “createMac_User.pkg”.” {
    NSFilePath = “./postflight”;
    NSLocalizedDescription = “An error occurred while running scripts from the package U201ccreateMac_User.pkgU201d.”;
    NSURL = “file://localhost/Volumes/instaDMG/InstaDMG/./InstallerFiles/CustomPKG/18/createMac_User.pkg”;
    PKInstallPackageIdentifier = “edu.uc.daap.createuser.pkg”;
    }
    install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x100410690 “An error occurred while running scripts from the package “createMac_User.pkg”.”
    %97.750000
    Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
    The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
    Folder 18 done (11:42:30)
    Working on folder 19 (11:42:30)
    Installing createMac_Admin.pkg
    Package name is createUser
    Installing at base path /private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc
    PHASE:Preparing for installation…
    -[IFPKGDerivedDocument sortedPackageLocations]: result = (
    “file://localhost”
    )
    -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
    -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/instaDMG/InstaDMG/./InstallerFiles/CustomPKG/19/createMac_Admin.pkg
    Will use PK session
    Starting installation:
    PHASE:Preparing the disk…
    Configuring volume “InstaDMG”
    Preparing disk for local booted install.
    Free space on “InstaDMG”: 308.78 GB (308783947776 bytes).
    Create temporary directory “/var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-//Install.54380osXwVf”
    IFPKInstallElement (1 packages)
    PHASE:Preparing createUser…
    PHASE:Waiting for other installations to complete…
    PackageKit: —– Begin install —–
    PackageKit: request=PKInstallRequest <1 packages, destination=/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc>
    PackageKit: packages=(
    “PKJaguarPackage
    )
    PHASE:Configuring the installation…
    STATUS:
    PackageKit: Extracting /Volumes/instaDMG/InstaDMG/InstallerFiles/CustomPKG/19/createMac_Admin.pkg/Contents/Archive.pax.gz (destination=/private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc/.PKInstallSandbox-tmp/Root, uid=0)
    PHASE:Writing files…
    %8.378277
    PackageKit: Shoving /private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc/.PKInstallSandbox-tmp/Root (0 items) to /tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc
    PackageKit: Executing script “./postflight” in /Volumes/instaDMG/InstaDMG/InstallerFiles/CustomPKG/19/createMac_Admin.pkg/Contents/Resources
    ./postflight: OS 10.6.4 not supported
    PackageKit: Install Failed: PKG: post-flight scripts for “edu.uc.daap.createuser.pkg”
    Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x102f04f10 “An error occurred while running scripts from the package “createMac_Admin.pkg”.” {
    NSFilePath = “./postflight”;
    NSLocalizedDescription = “An error occurred while running scripts from the package U201ccreateMac_Admin.pkgU201d.”;
    NSURL = “file://localhost/Volumes/instaDMG/InstaDMG/./InstallerFiles/CustomPKG/19/createMac_Admin.pkg”;
    PKInstallPackageIdentifier = “edu.uc.daap.createuser.pkg”;
    }
    install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x102f04f10 “An error occurred while running scripts from the package “createMac_Admin.pkg”.”
    %97.750000
    Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
    The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
    Folder 19 done (11:42:35)
    Working on folder 20 (11:42:35)
    Installing createARD_User.pkg
    Package name is createUser
    Installing at base path /private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc
    PHASE:Preparing for installation…
    -[IFPKGDerivedDocument sortedPackageLocations]: result = (
    “file://localhost”
    )
    -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
    -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/instaDMG/InstaDMG/./InstallerFiles/CustomPKG/20/createARD_User.pkg
    Will use PK session
    Starting installation:
    PHASE:Preparing the disk…
    Configuring volume “InstaDMG”
    Preparing disk for local booted install.
    Free space on “InstaDMG”: 308.78 GB (308783947776 bytes).
    Create temporary directory “/var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-//Install.54582v6Nybj”
    IFPKInstallElement (1 packages)
    PHASE:Preparing createUser…
    PHASE:Waiting for other installations to complete…
    PackageKit: —– Begin install —–
    PackageKit: request=PKInstallRequest <1 packages, destination=/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc>
    PackageKit: packages=(
    “PKJaguarPackage
    )
    PHASE:Configuring the installation…
    STATUS:
    PackageKit: Extracting /Volumes/instaDMG/InstaDMG/InstallerFiles/CustomPKG/20/createARD_User.pkg/Contents/Archive.pax.gz (destination=/private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc/.PKInstallSandbox-tmp/Root, uid=0)
    PHASE:Writing files…
    %8.380094
    PackageKit: Shoving /private/tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc/.PKInstallSandbox-tmp/Root (0 items) to /tmp/InstaDMG_temp_folder.1O1SfN/mount_point.Nh9QVc
    PackageKit: Executing script “./postflight” in /Volumes/instaDMG/InstaDMG/InstallerFiles/CustomPKG/20/createARD_User.pkg/Contents/Resources
    ./postflight: OS 10.6.4 not supported
    PackageKit: Install Failed: PKG: post-flight scripts for “edu.uc.daap.createuser.pkg”
    Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x103c104b0 “An error occurred while running scripts from the package “createARD_User.pkg”.” {
    NSFilePath = “./postflight”;
    NSLocalizedDescription = “An error occurred while running scripts from the package U201ccreateARD_User.pkgU201d.”;
    NSURL = “file://localhost/Volumes/instaDMG/InstaDMG/./InstallerFiles/CustomPKG/20/createARD_User.pkg”;
    PKInstallPackageIdentifier = “edu.uc.daap.createuser.pkg”;
    }
    install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x103c104b0 “An error occurred while running scripts from the package “createARD_User.pkg”.”
    %97.750000
    Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
    The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
    Folder 20 done (11:42:41)

    #378954
    nobrainer
    Participant

    On mine I finally got it to create the user- but it created with the wrong password – it didn’t use the one I put in the USERDATA file, and I double checked it wasn’t commented out… is there anything it won’t pass? Ours has “special” characters in it – ( $ 1 ….

    Also, it came up straight to signing in as that account – it didn’t list “other” account or anything. is there a way to set that, as well as the background jpg? I see where to change the icon for the user, but not the background.

    Thanks in advance!

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

Comments are closed