Jumpstart - Patches

From: Steve Devine (sdevine@msu.edu)
Date: Thu Apr 18 2002 - 12:56:56 EDT


All,
A while ago I posted a question about getting jumpstart to patch my servers at the same time I installed them.
Many of you answered and some offered scripts to accomplish this.
I have since received several off-list emails from folk looking to accomplish the same thing so here it is.
No doubt there is more elegant way to do this but I created a script (patch_script ) and via my finish script I copied it to the new server
and then ran it from there.

I put these lines in my finish script :
cp -p ${SI_CONFIG_DIR}/8_Recommended/patch_script /a/tmp/
/a/tmp/patch_script

this is the code for patch_script:

#!/a/bin/sh
/a/sbin/mount -F nfs install-server:/install/Solaris_8/jumpstart/8_Recommended /a/mnt
for ptch in `cat /a/mnt/patch_order`
do
/a/usr/sbin/patchadd -R /a /a/mnt/$ptch
done

This seems to work well .. now as I get new patch clusters they can
be expanded and they become part of the install process.

Steve Devine
Core Systems
Michigan State University

To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:13 EDT