* Re: use of 'env' not working when /usr not mounted at boot
2004-01-21 15:13 use of 'env' not working when /usr not mounted at boot John Stoffel
@ 2004-01-21 17:40 ` Gioele Barabucci
2004-01-21 17:42 ` Arnd Bergmann
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Gioele Barabucci @ 2004-01-21 17:40 UTC (permalink / raw)
To: linux-hotplug
On Wednesday 21 January 2004 16:13, John Stoffel wrote:
> 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.
'set' bash builtin command could be used instead.
--
Gioele Barabucci
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: use of 'env' not working when /usr not mounted at boot
2004-01-21 15:13 use of 'env' not working when /usr not mounted at boot John Stoffel
2004-01-21 17:40 ` Gioele Barabucci
@ 2004-01-21 17:42 ` Arnd Bergmann
2004-01-21 18:08 ` Marco d'Itri
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Arnd Bergmann @ 2004-01-21 17:42 UTC (permalink / raw)
To: linux-hotplug
On Wednesday 21 January 2004 16:13, John Stoffel wrote:
> 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.
>
> Sure, I could just copy /usr/bin/env to /bin/env, but I think that
> ignores the problem.
Can they be changed to use 'set' instead of 'env'?
Arnd <><
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: use of 'env' not working when /usr not mounted at boot
2004-01-21 15:13 use of 'env' not working when /usr not mounted at boot John Stoffel
2004-01-21 17:40 ` Gioele Barabucci
2004-01-21 17:42 ` Arnd Bergmann
@ 2004-01-21 18:08 ` Marco d'Itri
2004-01-21 22:27 ` John Stoffel
2004-01-26 19:59 ` Richard Troth
4 siblings, 0 replies; 6+ messages in thread
From: Marco d'Itri @ 2004-01-21 18:08 UTC (permalink / raw)
To: linux-hotplug
On Jan 21, Gioele Barabucci <ml@gioelebarabucci.com> wrote:
>On Wednesday 21 January 2004 16:13, John Stoffel wrote:
>> 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.
>'set' bash builtin command could be used instead.
IIRC this is what I did in my own patch.
Maybe next month I will find some time to rediff it against the latest
release.
--
ciao, |
Marco | [4226 tan2lVq7puKdk]
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: use of 'env' not working when /usr not mounted at boot
2004-01-21 15:13 use of 'env' not working when /usr not mounted at boot John Stoffel
` (2 preceding siblings ...)
2004-01-21 18:08 ` Marco d'Itri
@ 2004-01-21 22:27 ` John Stoffel
2004-01-26 19:59 ` Richard Troth
4 siblings, 0 replies; 6+ messages in thread
From: John Stoffel @ 2004-01-21 22:27 UTC (permalink / raw)
To: linux-hotplug
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.
As the basic level, it's probably either a Debian oversite, or a LSB
oversite.
John
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: use of 'env' not working when /usr not mounted at boot
2004-01-21 15:13 use of 'env' not working when /usr not mounted at boot John Stoffel
` (3 preceding siblings ...)
2004-01-21 22:27 ` John Stoffel
@ 2004-01-26 19:59 ` Richard Troth
4 siblings, 0 replies; 6+ messages in thread
From: Richard Troth @ 2004-01-26 19:59 UTC (permalink / raw)
To: linux-hotplug
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread