[Jamen contacted me directly, I'm sending the reply to the list]
McGranahan, Jamen wrote:
> Well, I think I found them. Someone moved the files from
> /var/sadm/pkg to /apps/sadm/pkg.
That was my first suspicion ..
> Can I force pkginfo to look in this directory? You stated that a
> softlink would not work, so other than moving the files back to
> /var/sadm/pkg, do I have any other options?
A soft link doesn't work because either pkgadd or patchadd seem to
replace it with a "real" directory when they run, for whatever reason.
You have two options:
Move the contents of /apps/sadm/pkg/ back to /var/sadm/pkg/.
Use a "loopback mount" to mount /apps/sadm/pkg/ under /var/sadm/pkg/.
This is the supported way to move directories under /var/sadm/ to some
other location. A command like:
mount -F lofs /apps/sadm/pkg /var/sadm/pkg
should work. Attention - the loopback mount will be missing again when
rebooting the machine, so you have to add it to /etc/vfstab as well. A
line like this should do it:
/apps/sadm/pkg - /var/sadm/pkg lofs - yes -
When the loopback mount is in place, check whether "pkginfo -x" and
"showrev -p" give reasonable results again.
hth,
Martin.