🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11098

Re: Problems with lofs on Sun-3/4, SunOS 4.0, 4.0.1

#11098
From: Per Westerlund
Date: Wed, 22 Feb 1989 20:23
27 lines
1710 bytes
Short recapitulation of the problem: Paraphrased, loop-back filesystems
(lofs(4)) are for directories what symbolic links are for files.  But, I
did not succeed in mounting filesystems of type lofs from the /etc/rc
script, which always worked from a shell.

The solution: The variable PATH is not exported in /etc/rc, add "export
PATH" and mounting lofs-type filesystems works.  (Aside: Why is PATH not
exported?  Will I break something when I export it, due to some very
subtle interaction?)

The explanation of the solution:
Whenever /usr/etc/mount encounters a file system type that it does not
recognize, it tries to execute a program called '"mount_%s", <file system
type>', in this case mount_lo.  (This is not documented, I got a
suggestion this was the case by Greg Earle, <earle@sun.com>. Thanks,
Greg.) There is a program /usr/etc/mount_lo, but /usr/etc/mount did not
find it, since it had the default PATH in the environment.  If /etc/rc
exports its PATH, which contains /usr/etc, /usr/etc/mount will find
mount_lo.

	Per Westerlund
	Holistic Technology AB
	Grona Gatan 59
	Gothenburg
	SWEDEN
	+46 31 420370
	perw@holtec.se
Technical Details
Message-ID: <678@holtec.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!husc6!rice!sun-spots-request
References: <677@holtec.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!husc6!rice!sun-spots-request
From: perw@holtec.se (Per Westerlund)
Newsgroups: comp.sys.sun
Subject: Re: Problems with lofs on Sun-3/4, SunOS 4.0, 4.0.1
Message-ID: <678@holtec.se>
Date: 22 Feb 89 20:23:49 GMT
References: <677@holtec.se>
Sender: usenet@rice.edu
Organization: Holistic Technology AB (HOLTEC), Sweden.
Lines: 27
Approved: Sun-Spots@rice.edu
Original-Date: 14 Feb 89 08:03:12 GMT
X-Sun-Spots-Digest: Volume 7, Issue 166, message 7 of 15
X-Issue-Reference: v7n149