Linking /tmp to /usr/tmp

Chris Wagner jwag at moose.asd.sgi.com
Tue Aug 7 05:47:36 AEST 1990


In article <66088 at sgi.sgi.com>, vjs at rhyolite.wpd.sgi.com (Vernon
Schryver) writes:
> 
> In passing, /etc/init.d/RMTMPFILES might be interesting to those who want to
> make /tmp into a link.  That is the script that tries to clean /tmp,
> /usr/tmp, and so on when the system is started.
> 
> 
> Vernon Schryver
> vjs at sgi.com

VJS is correct - please everyone - if you do NOT know the answer - do NOT post
random info!!!!!

In 3.3 we actually tried to allow this since for a while now customers
have asked for this ability. The pertinent lines from /etc/init.d/RMTMPFILES:

# if /tmp or any of its subdirectories is a mount point do not remove it.
# if /tmp symbolic links to other directory do not remove it.

M=`mount | grep ' on /tmp' | wc -l`
if [ $M -eq 0 ]; then
    if [ ! -l /tmp ]; then
	rm -rf /tmp		
	mkdir /tmp
    fi
fi

As for running in single user mode - things like ex/ve are in /usr/bin - so
noone will be running those without /usr mounted!

As for the X socket - I believe in order to start this whole scenario -
one need to log out, and log back in as root NOGRAPHICS - this way news and
X will not be started up - here is your chance to link /tmp and /etc/gl

Notice that the 3.3 installation tools HANDLE symbolic links just fine -
I personally have my /usr/demos and /usr/adm/crash symlinked onto another
disk

Chris Wagner



More information about the Comp.sys.sgi mailing list