On 08/06/2012 03:03 AM, Tollef Fog Heen wrote:
>> 3) I don't see that the FHS explicitly forbids symlinks from within
>> /{s,}bin and /lib* to /usr/..., but doing so (with the noted exception
>> of /lib/cpp) would seem to go against the spirit of the whole thing, right?
>
> That seems reasonable.
There's been ample discussion here about symlinks.
There was a desire at one time to make sure "the root filesystem" was
something you could boot to, even in the cases of a mounted /usr. That
doesn't seem to be a terribly interesting target any longer (separate,
perhaps even network-mounted /usr). The bigger need ("spirit" if you
will) is that things can be found in consistent places - and symlinks
are fine in accomplishing that goal. Other changes in various Linux
distros have increased the need to have direct-execute binaries and
directly-linked libraries NOT split up between too many directories, so
you'll find cases like this:
$ ls -ld /bin /sbin /lib
lrwxrwxrwx. 1 root root 7 Jun 19 00:01 /bin -> usr/bin
lrwxrwxrwx. 1 root root 7 Jun 19 00:01 /lib -> usr/lib
lrwxrwxrwx. 1 root root 8 Jun 19 00:01 /sbin -> usr/sbin
(recent Fedora)
People seem to feel this is okay based on discussion here, and even if
someone were to interpret existing FHS wording to suggest it isn't okay,
it has happened anyway, so perhaps there should be a nod to this in the
next edition of FHS - development of which has kind of stalled, but is
still available to be pushed through.
_______________________________________________
fhs-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fhs-discuss