[indiana-discuss] Adopt Indiana personalities (GNU and SUN)
Brandorr
brandorr at opensolaris.org
Tue Mar 4 23:26:31 PST 2008
Regarding the Sun vs. GNU userspace issue, might we consider following
Nexenta's lead here?
http://www.nexenta.org/os/Different_Personalities
The default behavior of NexentaOS is to search for execution binaries
in order described in the PATH. Standard locations such as /usr/bin
and /usr/sbin all populated with GNU binaries, which makes NexentaOS
behave as GNU system. SUN binaries saved in /usr/sun/bin and
/usr/sun/sbin locations and system could be forced to use SUN-like
personality by utilizing SUN_PERSONALITY environment variable.
SUN_PERSONALITY execve() system call logic implemented and it is
finally allows Solaris-centric scripts to be executed in NexentaOS
without modifications.
Simple SUN_PERSONALITY=1 environment variable will switch execution
paths on the fly to look on /usr/sun/{bin,sbin} first.
nexenta-pkgcmd package using this during "alien" SVR4=>Debian on-the
fly conversion to enable solaris-like environment for SVR4 maintainers
scripts.
Cheers,
Brian
P.S. - Can we consider /usr/sun/bin, instead of /usr/has/bin?? This is
a bit more respectful to the founders of Sun and the initial ancestors
that created this OS.
--
- Brian Gupta
http://opensolaris.org/os/project/nycosug/
http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ
More information about the indiana-discuss
mailing list