> How do I make the change permanent? To do this, cleanly, in such a way that it scales, you'd have to deliver your own private copy of ksh93 in /opt/whatever/bin/.
This in turn implies that you'd have to compile ksh93 such, that he looks for the system-wide configuration files (profile, etc.) in /etc/opt/whatever/, otherwise, if you planned to introduce your own configuration, you'd have to edit Sun's profile. And there you'd run into trouble, because that in turn would mean that you'd have to come up with a way to automatically analyze and modify the configuration as delivered by Sun. But, what happens if you upgrade? There is no guarantee that your changes will be preserved; chunks which you might be modifying in the "postinstall" phase of your package might be completely gone in the target file, etcetera, etcetera. And, what if someone else already made such modifications to the target file? Then you'd have to make sure that you don't clobber their modifications. Extremely complex work. But, it doesn't stop there: once you deliver your own ksh93 in /opt/whatever/bin/, you also have to modify /etc/default/login and /etc/default/su, to have your shell available in the PATH. Also, you'd need to make sure /etc/shells is updated, but only if there's no ksh93 entry in there already; if there is, you'd have to make sure that somehow you mark that, so that you don't remove someone else's modification upon removal (it could be from another package!) And again, no guarantees that these files won't get clobbered by Sun during an upgrade (someone from Sun please correct me). Finally, even if you get that far, and package everything and thereby automate it, you have to test it on every Solaris platform and release you plan to support. With all that work (and that's a tremendous amount of work), every time you did an upgrade, you'd still have to install your package "overlay", or produce a Flash(TM) build that already had it installed in it. This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
