For as much as I hate to say this...
Linus, I didn't expect this of you. /usr can be a readonly
filesystem, possibly shared with other systems. I posted the original
complaint because of invalid assumptions in the hard-coded paths, not
so much because of the hardcoded paths themselves.
If there have to be hardcoded paths, they should point to the root
filesystem and not into /usr (and certainly not /usr/local!) There
you can safely assume it is possible to symlink whereever. /bin/java
or /sbin/java - fine. /usr/bin/java is not.
The second assumption (which the /proc/sys patches posted haven't
fixed) is that binfmt_java.c assumes the Java interpreters are
/bin/bash shell scripts, a very poor assumption to hard-code into the
kernel. If these have to be shell scripts, then make sure #! works as
usual rather than hard-coding the stuff into the kernel.
-hpa
--=20
PGP public key available - finger hpa@zytor.com
"The earth is but one country, and mankind its citizens." -- Bah=E1'u=
'll=E1h
I don't work for Yggdrasil, but they sponsor the linux.* hierarchy.