Hello Guy & all.

Personally, I didn't understand much of you explanation.

I didn't understand why a rescue floppy won't work. The only thing I realized,
was that rather than correcting the links, you create a /bigdisk/etc that
points to /etc. Looks like a nice solution, which I may have adopted myself,
if I wasn't so eager to get on.

My 'absolute links' are all corrections of the cases, where the root directory
was referred to as ../../...(and so on). If I want /etc/passwd, why go
../../../etc/passwd? If I mean root, go root. In that sense, the link
correction looks better than the previous trick.

I agree that things become messy when new packages are installed, which is
exactly the reason why I install all the packages from the beginning. And when
you want a new package, it's a headache anyhow...

    Eli

guy keren wrote:

> On Mon, 11 Nov 2002, Eli Billauer wrote:
>
> > For example, /usr/X11R6/lib/X11/XF86Config is symlinked to
> > ../../../../etc/X11/XF86Config, which is a nasty way to say
> > /etc/X11/XF86Config. Nasty, because after we move the directory tree, it
> > will actually point to /bigdisk/etc/X11/XF86Config, which doesn't exist,
> > because /etc wasn't moved off the root partition (for good reasons...).
> >
> > And there are a lot of broken links like this. I searched the web for a
> > solution, and couldn't find one. So I wrote a script.
>
> the problem with your solution, is that whenever you'll want to install
> another RPM from the distribution (if) or update such an RPM - you'll get
> broken links again (or the installation might even fail).
>
> what i usually do in such acase, is locat the problematic top-level
> directories, and only create symbolic links for them:
>
> cd / && ln -s /bigdisk/etc /etc
>
> this will break if you ever use a rescue floppy (it'll look for the
> mounted '/mnt/root/etc' under /bigdisk/etc, whilc it'll most likely be
> under '/mnt/bigdisk'), or when you later want to upgrade to a newer
> version of your distribution (i already stumbed upon this issue once ;) ).
>
> so even better:
>
> cd / && ln -s bigdisk/etc /etc
>
> assuming the number of directories _directly_ under /bigdisk is small -
> this solution will require much fewer links, and will tend to break less
> then modifying every symlink in the system.
>
> also, if you use a rescue floppy - all your 'absolute path links' will
> break - that's part of why relative paths, rather then absolute paths, are
> usually used with symbolic links.
>
> it also makes it possible to mount partitions on other directories later
> on.
>
> --
> guy
>
> "For world domination - press 1,
>  or dial 0, and please hold, for the creator." -- nob o. dy


--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]


Reply via email to