Software Update on Firstboot

golbiga
Contributor III
Contributor III

I was wondering what's the best method to run software update on firstboot after imaging a machine. I don't always get around to updating an image in a timely manner and there will be some software updates that come out during that time. Instead of relying on my techs to actually run softwareupdate (they never do) I want to make sure the systems are up-to-date. I thought about adding /usr/sbin/softwareupdate –ia to my firstboot script, but I was wondering if there is a better approach.

Thanks
Allen

3 REPLIES 3

bentoms
Release Candidate Programs Tester

That's pretty much what I've done for a few years!

(actually have a firstboot policy with' set update server' & 'install all updates' ticked).

Regards,

Ben.

golbiga
Contributor III
Contributor III

How is that policy getting applied? By a custom trigger?

bentoms
Release Candidate Programs Tester

Yep, custom trigger.

I have a base configuration, with smart configurations for each department or location (or both)...

Each of these run a custom trigger, this policy contains NTP settings, custom AD bindings, login window text, wireless ssid's etc... & sus installing updates.

Some of these triggers will be the same across configurations, others unique.. All my scripts have variables within them... So it's easy for me to update.

Regards,

Ben.