Summary: jumpstart and Packages

From: Christopher L. Barnard <>
Date: Sun Oct 05 2008 - 06:05:11 EDT
I asked

> In our environment, /usr/local and /opt/local are the same.  Usually
> this
> is accomplished by having /usr/local be a symlink to /opt/local.  But
> occasionally there are old systems that have /opt/local as a symlink
> back
> to /usr/local either because the local stuff won't fit in /opt but  
> will
> fit in /usr or because /usr/local is a separate filesystem that just
> happens to be mounted as /usr/local.
> I have a package that installs into /[usr|opt]/local/bin just fine
> when installed interactively.  It has no problem with the symlink.
> pkgadd -d OpenSSH*.
> But when I put it into jumpstart, the jumpstart barfs on the symlink:
> [...]
> pkgadd: ERROR: unable to create package object </a/usr/local/bin>.
>    pathname does not exist
>    unable to create directory
> /a/usr/local/bin
> /a/usr/local/bin/scp
> pkgadd: ERROR: unable to create directory </a/usr/local>: (17) File
> exists
> [...]
> (in jumpstart, the finished server image is mounted as /a).
> Note that it is trying to create the directory /usr/local.  Yes it
> exists.
> Its a symlink.  My jumpstart rules created it about five lines earlier
> than this package install.
> Does anyone have any idea why
> (1) this works interactively but not in jumpstart, and
> (2) what I need to do to get this to work?  I build these packages
> myself,
> so I am quite comfortable editing the pkg image build if that is  
> needed.
> I intentionally do not have in the package prototype the definition
> of /usr/local so that both a symlink and an existing directory work.
> The package installation just acts with the blind trust that
> /usr/local exists in some form or other.

The answer:

yes, /usr/local exists.  It is a symlink to /opt/local which is not  
the same as /a/opt/local.  I changed it to a relative symlink (/usr/ 
local -> ../opt/local) and it works like a charm.  Thanks to the many  
many folks who pointed out the bad symlink.

Christopher L. Barnard
  When I was a boy, I was told that anyone could be president.  Now I am
  beginning to believe it.                            -- Clarence Darrow
sunmanagers mailing list
Received on Sun Oct 5 06:08:01 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:12 EST