[pca] Reboot Required?

Rajiv Gunja opn.src.rocks at gmail.com
Thu Jun 25 22:10:59 CEST 2009


Paul,
I had the same issue when I started using PCA, but at a later date thought
it would be better for PCA to download all the patches and install only the
ones which does not require a reboot, by itself rather than handle it
separately.

This script will create a patch list which does not require a reboot. This
is just a skeleton script, but you get the idea.

-GGR

---------------------------------------------------------------------------------------------------------------------------------------------------
#!/usr/bin/ksh

pca --noheader --format '%p-%c' -l missing > /var/tmp/missing.lst

mkdir /var/tmp/READMES

for eachpatch in `cat /var/tmp/missing.lst`
do

pca -r $eachpatch > /var/tmp/READMES/$eachpatch

ISIT=`grep reboot /var/tmp/READMES/$eachpatch | grep reboot | wc -l | awk
'{print $1}'`

if [ $ISIT = "0" ]
then
echo $eachpatch >> /var/tmp/NoReboot.lst
fi

done
---------------------------------------------------------------------------------------------------------------------------------------------------


--
 Rajiv G Gunja
Blog: http://ossrocks.blogspot.com


2009/6/25 Paul A Zakas <Paul.Zakas at abbott.com>

>
> Is there is a capability in pca or elsewhere to investigate whether or not
> a particular patch requires a reboot besides pca -I?
>
> That is one way to do it, but it seems that downloading each patch .zip
> file only to scan the README file is cumbersome. I'm wondering if there is
> another reference file of some kind or a uniform way in which Sun
> categorizes patches that require reboots.
>
> Thanks!
>
> -Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.univie.ac.at/mailman/private/pca/attachments/20090625/40947db2/attachment.html 


More information about the pca mailing list