On 11/02/2010 03:53 PM, Coert Waagmeester wrote: > Gary Golden wrote: >> On 11/02/2010 12:08 PM, Daniel Pielmeier wrote: >>> 2010/11/2 Gary Golden <m...@garygolden.me>: >>>> Hi, list. >>>> I keep changes of my /etc with git and I would like to include >>>> /var/lib/portage/world file into the repository. >>>> >>>> Can I safely do: >>>> >>>> mv /var/lib/portage/world /etc/portage >>>> ln -s /etc/portage /var/lib/portage/world >>>> >>>> Will portage update handle it properly? >>>> Using hardlinks seems to be more cleaner way, but for some reason I >>>> don't want to use it for this task. >>> It should work. Just try it out, but make a copy of your world file >>> before. Should be easy to switch back if anything fails. >>> >>> Afaik, the creation of the symbolic link should look like this: >>> ln -s /etc/portage/world /var/lib/portage/world >>> >> >> Thanks for the correction, you're right, of course. >> Nevertheless, I've considered that using hardlinks is most porper way to >> solve this task. It basically do what I need, make another reference to >> the file under needed directory; without introducing compexity. >> > > What about a bind mount? > > Rgds, > Coert > >
Indeed, it is another solution for this. But its disadvantage is that it requires additional configuration (fstab at least) If /var would be on another fs, then I would use bind mount, though :) -- Gary Golden