I am attempting to create a 10.5.8 image with InstaDMG that has 4 users. I need those users to have their home directories created before I can apply some of my packages, as these packages target specific locations within specific users’ home directories. This prevents me from doing it on first run using launchd.
The createuser.pkg is not creating these directories for me so I have attempted to create a pkg of my own which includes this line:
“${3}”/usr/sbin/createhomedir -c > /dev/null
The code is hacked together from other scripts I have found online so I’m really not sure if it is fully appropriate, though it does work if typed in Terminal on the target machine. It is not working during the image creation process though.
Any thoughts on how best to achieve this goal, if it is even possible, would be greatly appreciated.
Comments are closed