Philip Brown wrote:
> FYI: I've seen a lot of postinstall scripts in the last 5 years.
> With the exception of device driver related stuff, I cant recall even ONE, 
> that required a "wait until reboot" behaviour.

But your experience is with packages added after the OS is installed, right?
I can understand the pkg team point of view after seeing how many package
postinstall scripts have had to be fixed & refixed to work properly during
OS install, where the script has to run on a different OS release than the
one you're installing to (live upgrade) or a different platform than the
one you're installing to (diskless clients) and almost always in a chroot'ed
environment since the install image is mounted under /a or /mnt or somewhere
else.

This is one of the big reasons why even in our SVR4 packages, when I added
fontconfig support, I put in a SMF service to run fc-cache on boot instead
of doing it in a package postinstall (it's also more efficient that way so
we only run it once per OS install, not once per package with fonts in) -
otherwise I would have had to make patches for S7, 8 & 9 to install fc-cache
& fontconfig, and make them be in the list of "patches you must add before
liveupgrading to S9Updates or later."

-- 
        -Alan Coopersmith-           [EMAIL PROTECTED]
         Sun Microsystems, Inc. - X Window System Engineering

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to