- This topic has 4 replies, 4 voices, and was last updated 15 years, 3 months ago by
foilpan.
-
AuthorPosts
-
December 13, 2009 at 2:17 pm #377661
TAW
ParticipantI am trying to build a simple image with Instadmg. Basically I started with a 10.5.4 dmg, added the 10.5.8 combo update as well as the clearreg script and the createuser script. During the build process I do not see any errors but I am unable to use the account I told createuser to make. I have tried using the password_hash method as well and the clear text but at this point I really don’t know if its even creating the account (not really sure how to tell either).
Here is a sample of my USERDATA file, what am I doing wrong? How can I tell if its creating the user account but using the wrong password?
#replace these values with your own. Comment out to use defaults
shortname=admin
longname=Administrator#leave blank for next available uid, Allowed UIDs are 100+
uid=501#leave blank for 20
gid=20#leave blank for /bin/bash
shell=”/bin/bash”#leave blank for /Library/User Pictures/Nature/Zen.tif
#pic=”/Library/User Pictures/Nature/Zen.tif”#uncomment to set password (not recommended since password is clear text)
#if blank, it will use password hash file “password_hash”
password=”password”#guid, leave blank for auto gen
#genUID=D4F8BFC9-8EC8-4645-A739-516F59571A2E#home folder, leave default for /Users/%u
#the following placeholder substitutions are currently supported
# %u substitute the shortname
# %n substitute the uid
# %l substitute the first letter of the shortname
# %L substitute the first letter of the shortname in uppercase
user_home=/Users/%u#admin
#1 – add to admin group
#0 – don’t add to admin group
admin=1#hide user
#1 – hide user from login window
#0 – don’t hide user (default)
hide_user=0December 14, 2009 at 3:04 am #377662TAW
ParticipantThe machine I was originally using to test the process is a MacBook Pro with 10.6.2. I copied everything to a G5 iMac running 10.5.8 and it seems to work as expected…..although it took 6 hours to build a simple 10.5.4 image with clearreg and createuser scripts.
So am I too understand that if I want to build a 10.5 image I need to do it from a 10.5 machine? and a 10.6 image I need a 10.6 machine?
December 14, 2009 at 6:39 am #377663larkost
ParticipantYes, unfortunately at the moment you have to build 10.6 on 10.6, and 10.5 on 10.5. Yesterday in the shower I had an idea about how to get around this (maybe… it is going to take a little work). But right now that is second or third in line for my attention, and I have been distracted recently. But I do have Macworld coming up in February, and would like to have something to present by that point.
January 5, 2010 at 12:30 am #377747scottmorabito
ParticipantI was getting problems just running the basic script/installer even outside InstaDMG I grabbed the latest createUser from v236 and modified the postflight file. There are two lines with:
if ( echo $HOST_SW_VERS | grep “^10.5″>/dev/null ); thenchange 10.5 to 10.6 and it works fine.
January 5, 2010 at 1:32 am #377748foilpan
Participantyou could also change it to the following and check for both 10.5 or 10.6:
[code]
if ( echo $HOST_SW_VERS | egrep “^10.5|^10.6″>/dev/null ); then[/code]or more simply:
[code]
if ( echo $HOST_SW_VERS | egrep “^10.[5-6]”>/dev/null ); then[/code] -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed