[pca] Duplicate patches
Martin Paul
martin at par.univie.ac.at
Fri Sep 17 10:03:13 CEST 2010
Hi,
> I've run into something rather frustrating. Namely that the finish
> scripts for patching expect patches to be an extracted patch cluster
> - i.e. a directory containing a patch_order file and subdirectories
> for each patch; while PCA looks for individual zip archives for each
> patch.
Actually PCA will use extracted patches as well, just try to point it at
the appropriate "patchdir".
A possible problem is that when some patch is missing from "patchdir",
PCA will try to download it and store it there, requiring write
permissions. And of course it will store ZIP files there, not extracted
patch directories. If you ensure that all patches already exist in
"patchdir" before running PCA, you should be fine.
As you found out in the meantime, using PCA itself in the finish script
might be the best solution. For that to work, I recommend using a local
caching PCA proxy which will do the patch downloads. One thing to take
care of is the fact, that the mini-root which is booted via the network
during Jumpstart does not contain a wget binary (at least when I looked
the last time). Here I store a copy of PCA and wget binaries for
sparc/i386 in the jumpstart directory and use a command like that in the
finish script:
./pca \
--root /a \
--wget ./wget-`uname -p` \
--xrefurl=http://1.2.3.4/pca/pca-proxy.cgi \
--patchurl=http://1.2.3.4/pca/pca-proxy.cgi \
--xrefdir=/tmp \
--patchdir=/tmp \
--nobackup=all \
--install \
missing
Hope that helps,
Martin.
More information about the pca
mailing list