Okay Just FYI, our driver loading setup is also a bit unusual. Namely we have dependencies on drivers as well as the misc/vbi module.
So the order of driver loading (as well as unloading while uninstalling) matters a lot. This is why we have a proper postinstall procedure that does this. Also we need to patch a system file (due to a bug in dhcpagent/nwam which conflicts with VirtualBox) and we do need to enable a ZoneAccess service which makes sure VirtualBox can be used from a zone. This essentially means allowing us to execute code as root after installation and before removing. On Thu, 2009-04-30 at 08:19 -0700, Danek Duvall wrote: > On Thu, Apr 30, 2009 at 01:59:24PM +0200, Ramshankar wrote: > > > It seems to be pkg(5) touches the various boot archive files for loading > > the driver (name_to_major, devlink.tab etc.) but does not really load > > the driver. > > > > Is there any facility in pkg(5) for simply loading the driver like: > > > > add_drv (-i if needed) -m'* 0666 root sys' driver > > devfsadm -i driver > > > > If so could any post the pkgsend action for this? > > The "add driver perm" doesn't load the driver just seems to update the > > config files. > > Bart and I are debating this. The drivers are intentionally not loaded, > since I was (and am still) paranoid about having just-delivered code run at > package install time. We may compromise and have the post-execute phase of > the driver install load all drivers that had been added or updated, so that > at least all bits are on the system before the potential panic. > > > Another thing we need is an example / instructions on how to 'emulate' a > > SRv4 postinstall/preremove script with pkg(5); I understand I need to use > > SMF service for this. > > > > After digging a bit I found this: > > http://markmail.org/message/wldyadbrqmtpgnq6 > > > > Is there any documentation on "actuators" ? > > man -s5 pkg, as of build 111. If you don't have that, > > http://src.opensolaris.org/source/xref/pkg/gate/src/man/pkg.5.txt > > > If I understood right, even actuators don't "enable" a service on > > installation right? > > Correct. > > Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
