For the record, since we already discussed this on IRC, this patch helps with a few issues, like the location of the home directory and also the need for adding /usr/sbin to the PATH, however the postinstall script is still not suitable for Solaris integration, since it tries to create the role on the host system (where the installer is running) and not on the target system (that is being installed/upgraded).
It also doesn't help us on OpenSolaris where we don't have either CASs or postinstall scripts and there are no actions currently implemented for adding roles or auths. So the solution we discussed involves a CAS for adding the auth (since this is the standard way to do that on svr4 Solaris, and an SMF service that 1) checks if the auth is there and adds it if it's not 2) creates the role The auto-snapshot service will depend on this one. Laca On Tue, 2008-09-23 at 13:13 +0800, Niall Power wrote: > I have a patch from Tim that he had asked me to review that > should address these issues. I approved the patch but he > hasn't pushed the changes yet. I'll apply the patch in the spec > file, do some testing and then we can drop it once he pushes > the patch upstream. > > The patch uses "/" as the user's home directory and drops the need > to add "/usr/sbin" to the role's PATH > > I've attached the patch if you're interested. >
