On 6/18/07, Casper.Dik at sun.com <Casper.Dik at sun.com> wrote: > > > >chroot $PKG_INSTALL_ROOT useradd ... > > > There's no guarantee that that would work (think live upgrade scenario > when you are running on an older version of Solaris and you now try to > run binaries for a newer version, missing /dev in the chroot'ed env, etc
I was approaching the problem from the limited scope of an individual IT shop where the permutations of required support are quite a bit less than those required by the Solaris product team. That being said, JASS 4.2 (a Sun supported product) uses the mechanism I suggest for a variety of commands (coreadm, passmgmt, passwd, etc.). In my experience, JASS with alternate roots is used under roughly the same conditions that pkgadd -R is. I would argue that it would be relatively common to have JASS performing the pkgadd -R. I'm pretty sure that the only /dev entries that are required are /dev/zero and /dev/null, which should exist (with consistent major/minor numbers) due to the fact they are included in SUNWcsd. Mike -- Mike Gerdts http://mgerdts.blogspot.com/
