Self Service and InstallLion.pkg

golbiga
Contributor III
Contributor III

I've been testing out InstallLion.pkg via Self Service and it works pretty well. The whole process is pretty straightforward. Just create a policy triggered by none (Self Service) add the InstallLion.pkg. The only thing I added to the policy is /sbin/reboot in the Run Command field. I found that if I had the policy do the reboot, it wouldn't start up the Lion Installation. /sbin/reboot did the trick. I was able to customize the installer as well to include a modified version of my firstboot script. To get more info on InstallLion.pkg, check out http://managingosx.wordpress.com/2011/09/08/update-to-automated-installs-of-mac-os-x-lion/.

Thanks
Allen

3 REPLIES 3

RobertHammen
Valued Contributor II

Just got around to doing the same.
On Sep 13, 2011, at 2:28 PM, GolbigA at mskcc.org wrote:

Download the InstallLion.pkg from Greg Neagle's site above and follow the instructions included in the ZIP file.

Basically, copy the InstallESD.dmg from your Install Mac OS X Lion.app's Contents/SharedSupport folder into the InstallLion.pkg/Contents/Resources/ folder
Run the /getIncompatibleAppListPkg command and copy the index.sproduct and MacOS_10_7_IncompatibleAppList.pkg into the InstallLion.pkg/Contents/Resources/Mac OS X Install Data/

Drag your InstallLion.pkg into Casper Admin, assign it a category, and save your changes.

In your JSS, create a policy to install the InstallLion.pkg, scope it to whatever smart or static group you want, and run the /sbin/reboot command (as Allen says, even though InstallLion is flagged to require a reboot, this may not work).

Voila, instant Self-Service 10.7.1 installation, which also creates the Recovery partition.

Only thing I discoved was that my hidden admin user does not survive the Self Service Lion install. May try unhiding the account, then hiding it again after Lion is complete...

--Robert

![external image link](attachments/0fed27b9c3da492c9ae471716103da9e)

golbiga
Contributor III
Contributor III

For the hidden admin account I just recreated it in my firstboot script. I then made a customized InstallESD.dmg with customizeInstallESD and included my firstboot script. I'll probably also add Java in the end.

Allen

RobertHammen
Valued Contributor II

I already have a policy scoped to all Lion users, run once, to install Java.
On Sep 15, 2011, at 4:50 PM, GolbigA at mskcc.org wrote:
I created a second one, run once, to re-create my hidden admin account.

All seems to be well...

--Robert