[pca] pca and the liveupgrade needs?

przemolicc at poczta.fm przemolicc at poczta.fm
Wed Nov 4 15:59:31 CET 2009


Hi all,

I had to use this Sunsolve document before several times (and asked Martin
about the same feature :-)) but I stopped since SUN released
- Solaris 10 SPARC Live Upgrade Zones Starter Patch Bundle
- Solaris 10 x86 Live Upgrade Zones Starter Patch Bundle
You can download them from 
https://sunsolve.sun.com/show.do?target=patches/patch-access

I install them before LU and then safely use LU without problem.
Since some Solaris 10 release (I don't recall which one) they are
already included in the system but olders S10 releases
need them.

Best regards
Przemek

On Wed, Nov 04, 2009 at 03:38:07PM +0100, Martin Paul wrote:
> Gerard Henry wrote:
>> before applying the liveupgrade procedure, we need to verfiy a bunch of 
>> patches on this document:
>> http://sunsolve.sun.com/search/document.do?assetkey=1-61-206844-1
>
> pca is not really good at this, as you've found out already ..
>
> I'm attaching a small script I've used for the same purpose in the past.  
> Run it like that:
>
>   $ ./chkmin 118815-05 120900-04 ...
>
> It will only output those patches from the list which are not installed  
> in at least the specified revision already. You can feed that list back  
> to pca immediately, like that:
>
>   $ pca --list `./chkmin 118815-05 120900-04 ...`
>
> You'll probably quickly notice one thing: Sun includes patches in these  
> list which are obsoleted, so some more manual intervention might be  
> required (the script doesn't resolve obsoletions). I don't know whether  
> Sun does that by intention: on one hand, the required fix *is* included  
> in the obsolete patch, so there's no need to install the patch which  
> obsoleted it instead. On the other hand, recommending the installation  
> of obsolete patches seems wrong.
>
> As I don't know what the correct recommendation would be in that case,  
> this is one reason why I haven't added the "chkmin" functionality to pca  
> yet. Might be a good moment to ask you (and others) on what you think  
> about how this should be handled?
>
> Martin.

> #!/usr/bin/perl -w
> #
> # 2008/12/10: v1.0
> 
> if ($#ARGV == -1) { print "Usage: $0 123456-78 ...\n"; exit 1 }
> 
> my %p;
> open (S, "/usr/bin/showrev -p | sort |");
> while (<S>) {
>   next unless ($_ =~ /Patch: (\d{6})-(\d{2}) /);
>   $p{$1}=$2;
> }
> close (S);
>   
> foreach my $i (@ARGV) {
>   next unless ($i =~ /(\d{6})-(\d{2})/);
>   next if ((exists $p{$1}) && ($p{$1} ge $2));
>   print "$1-$2\n";
> }


-- 
Regards
Przemyslaw Bak (przemol)
--
http://przemol.blogspot.com/





























----------------------------------------------------------------------
Konkurs: Wygrywaj nagrody z Pudzianem!
Sprawdź >> http://link.interia.pl/f240e  




More information about the pca mailing list