From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Troth Date: Mon, 26 Jan 2004 19:59:20 +0000 Subject: Re: use of 'env' not working when /usr not mounted at boot Message-Id: List-Id: References: <16398.38701.179890.219248@gargle.gargle.HOWL> In-Reply-To: <16398.38701.179890.219248@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > Since I have /usr mounted seperately, the default.hotplug script (and > some others) which use the env command, barf on startup, since hotplug > is running before /usr is mounted. Frustrating. I also have many occasions where /usr is mounted "later". > Sure, I could just copy /usr/bin/env to /bin/env, but I think that > ignores the problem. Yes, you're right. The real problem is that anything which runs that early should not depend on /usr content. > Arnd> Can they be changed to use 'set' instead of 'env'? > > Not as far as I can see, since 'set' doesn't provide the environment > variables possibly used for debugging the way 'env' does. Perhaps this: sh -c set where any variables exported to the environment will be inherited by 'sh' as a child process, unless overridden by a .bashrc or some such. (Beware rc files for root. Badness reigns there.) -- R; ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel