[csw-maintainers] Jumpstart post-install recipe for OpenCSW

Philip Brown phil at bolthole.com
Fri Jun 5 18:36:52 CEST 2009


On Fri, Jun 05, 2009 at 06:27:40PM +0200, Sebastian Kayser wrote:
> Hi,
> 
> does someone have a working "install me some OpenCSW packages" Jumpstart
> post-install snippet that he could pass to me? I am in the process of
> setting up my first Jumpstart server and i would like to have it install a
> list of CSW pkgs after setting up the machine.
> 
> Is this known to work with the various postinstall scripts (or cswinitsmf)
> that we have in the packages?

If it doesnt, its a bug in the postinstall script. 


> And out of curiosity: What are the specifics to watch out for so that a
> postinstall script will work in a Jumpstart environment, just
> $PKG_INSTALL_ROOT [1] or are there any other caveats that pop up
> frequently?

That, and also the issue that you need to be aware that you may not be
running on a "live" system.
EG: If PKG_INSTALL_ROOT != /, then you cant run smf related commands, 
since there is no svc.configd running.
which kinda sucks.

and no you cant run svc.config chrooted, btw. not that i've found anyway.

So that sort of stuff needs to be added post-reboot at the moment.

   * * * *

This is why it's important that people use the class utility scripts to add
in smf support. So that when and if we figure out improvements in this
area, everyone gets to use it without having to rebuild their packages.

ADDITIONALLY... it might behoove us to formalize some kind of
"post reboot helper script" hook for our packages.
That way, we could have those packages/classes that need it, have a
specific integrated way to register "run this after reboot", like
IPS allows.



More information about the maintainers mailing list