[indiana-discuss] Adopt Indiana personalities (GNU and SUN)

Josh Lange josh.h.lange at gmail.com
Wed Mar 5 09:30:24 PST 2008


I see the advantage as being able to SVR4 scripts seemlessly (have
SUN_PERSONALITY set automatically by the package manager), as well as
letting users opt to have all their scripts/commands to work just as they
would on another sun box (ex. in the case of networked home directories,
legacy, etc).

Josh


On Wed, Mar 5, 2008 at 7:19 AM, Alan Coopersmith <alan.coopersmith at sun.com>
wrote:

> Brandorr wrote:
> > 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.
>
> Sounds like a lot of work that is much more simply handled by setting
> $PATH - why would changing exec be better than setting $PATH to the
> value you want?
>
> --
>        -Alan Coopersmith-           alan.coopersmith at sun.com
>         Sun Microsystems, Inc. - X Window System Engineering
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/indiana-discuss/attachments/20080305/d7abaae5/attachment.html 


More information about the indiana-discuss mailing list