[svn-rock-linux] r8321 - trunk/package/base/sysfiles
ROCK Subversion Status List
rock-svn at rocklinux.org
Mon Apr 9 20:12:27 CEST 2007
Date: 2007-04-09 20:12:27 +0200 (Mon, 09 Apr 2007)
New Revision: 8321
sysfiles: add */sbin directories to PATH in /etc/profile
not only if / is writeable but also if the user is root.
If /etc/profile doesn't include /sbin dirs in PATH, many
init scripts will fail pretty badly, but on bootup, / may not yet
be writeable (until the localfs init script has been executed).
Generally, on bootup init calls /etc/rc.d/rc, which in turn calls
/sbin/rc for each init script. /sbin/rc spawns a login bash
for every script, which sources /etc/profile.
Init exports the default PATH ("/bin:usr/bin:/sbin:/usr/sbin")
to all its children and thus to /etc/profile (since /sbin/rc copies it
to the bash environment). /etc/profile just resets the PATH - if there
is no /etc/profile, the init scripts will use the default PATH.
Get the changeset with:
svn diff -r 8320:8321 http://www.rocklinux.net/svn/rock-linux
More information about the rock-svn