[install-discuss] /var/sadm/pkg missing??
mary ding
mary.ding at Sun.COM
Fri Aug 10 13:16:22 PDT 2007
Mike and Ethan:
If you want to patchadd to the miniroot, you must use the patchadd -C
option. You also need to set PKG_NONABI_SYMLINKS to true before you run
patchadd -C.
Most of the patches that install into /var should have a prepatch
script to check whether the PKG_NONABI_SYMLINKS variable is set and give
you warning if you do not set it. I know that all our admin/install
patches from our consolidation will check for this variable.
I had done this before in s10u1 when wanboot is broken and need to apply
a patch to s10u1 to fix wanboot. YOu can take a look at the attached
procedure and see how to patch wanboot miniroot.
Mike Gerdts wrote:
> On 8/10/07, Ethan Quach <Ethan.Quach at sun.com> wrote:
>> So are we talking about /var/sadm on the running system getting lost or the
>> /var/sadm in your wanboot miniroot image mounted at /mnt ? If the latter,
>> then there might be an explanation (or at least a known issue that explains
>> it). In the miniroot image, ./var is symlinked to ./tmp/root/var and
>> there is a
>> known issue in the pkg tools where if the pkg delivers something into
>> ./var, it
>> breaks that symlink.
>
> Taking a look at a broken wanboot image (not sure if this is the same
> one or not)
>
> # find var
> var
> var/svc
> var/svc/manifest
> var/svc/manifest/system
> var/sadm
> var/sadm/pkg
> # find tmp/root/var | wc -l
> 3346
> # cat tmp/root/var/sadm/patch/.patchaddLock
> 3643
>
> Note that the var symlink was broken and I was left with a small
> skeleton directory there. The likely culprit was patchadd, not pkgrm.
>
> Mike
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wanboot.net
Url: http://mail.opensolaris.org/pipermail/install-discuss/attachments/20070810/86859413/attachment.ksh
More information about the install-discuss
mailing list