Apparently, though unproven, at 11:54 on Tuesday 02 November 2010, Gary Golden 
did opine thusly:

> 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.


hard links will only work if /etc/portage and /var/lib/portage are on the same 
filesystem. Frequently, they are not.


-- 
alan dot mckinnon at gmail dot com

Reply via email to