Bug#224366: Relative links vs. symlinks.
On Sun, Dec 21, 2003 at 11:57:19PM -0500, Jeff Bailey wrote:
> On Sun, 2003-12-21 at 20:08, Daniel Jacobowitz wrote:
> > FWIW, I think we used to go to great trouble to create absolute
> > links...
> Erm, really? That bit me so many times when working with chroots to do
> bug reporting - I used to run a script over it to turn them into
> relative symlinks. Policy isn't terribly clear, which is why I've
> called it wishlist.
> What have I missed?
10.5. Symbolic links
In general, symbolic links within a top-level directory should be
relative, and symbolic links pointing from one top-level directory
into another should be absolute. (A top-level directory is a
sub-directory of the root directory `/'.)
This goes from /usr to /lib.
The reason is:
/usr -> /big-drive/usr
/var -> /big-drive/var
Which is in fact an extremely common setup.
MontaVista Software Debian GNU/Linux Developer