Project

General

Profile

Actions

Bug #2617

open

/etc/profile could use modernisation

Added by Alasdair Lumsden over 9 years ago. Updated about 2 years ago.

Status:
New
Priority:
Low
Category:
OS/Net (Kernel and Userland)
Target version:
-
Start date:
2012-04-12
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

In particular, /usr/sbin/quota gets called by default, which on a system with many ZFS filesystems delays the login quite considerably with potentially a very large amount of this type of thing:

http://pastie.org/private/kifzpr4ps6d9fw2iiszqma

On this particular box it adds an additional 5-10 seconds to the login time.

On systems where ZFS is misbehaving (such as if an iSCSI mount has gone away) it can prevent logging in at all (workaround: ssh -t).

Quotas are usually implemented in mutli-user environments such as Universities or corporate desktop environments, however I imagine the vast majority of OI installs are single user or on servers, where user-level quotas aren't implemented. Where quotas are used, they'll be with ZFS for shares.

So I am proposing we comment out /usr/sbin/quota (or in some way disable it by default). We should cater for the majority rather than a minority who can easily re-add it if desired.

Also the following looks a little bit dated to me:

if [ "$TERM" = "" ]
then
        if /bin/i386
        then
                TERM=sun-color
        else
                TERM=sun
        fi
        export TERM
fi

The top of the file could also be revamped with the new CDDL.


Related issues

Related to illumos gate - Feature #3395: add /etc/profile.d and /etc/.login.dNewPaul Henson2012-11-28

Actions
Actions

Also available in: Atom PDF