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]
