Firstrun script doesn't run until login

alexjdale
Valued Contributor III

Hi folks,

I am working on a process to automate a Lion upgrade, utilizing Casper Imaging via Netboot. The goal is to have a technician Netboot and then run a configuration that will install the required packages and reboot.

Casper Imaging will copy the packages, create the firstrun script, then reboot. However, the firstrun script won't execute until someone logs in.

Is there a trick that I am missing? I'd like to be able to cut out this unnecessary login step. I was thinking it may be related to auto-login, but our base images don't have that enabled and they execute the firstrun script automatically as expected.

Thanks,
Alex

1 REPLY 1

acdesigntech
Contributor II

Casper should create a temp user (wtmp, I think) and auto-login as long as you have some sort of package that needs to be installed on reboot at imaging time (this is an option in Casper Admin).

You could always script creating a temporary user and setting it to auto login as well, then just have your first run script clean this user up.