Gentoo Archives: gentoo-user

From: Coert Waagmeester <lgroups@××××××××××××××.za>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] world symlinking
Date: Tue, 02 Nov 2010 11:13:01
Message-Id: 4CCFED9F.1000702@waagmeester.co.za
In Reply to: Re: [gentoo-user] world symlinking by Gary Golden
1 Gary Golden wrote:
2 > On 11/02/2010 12:08 PM, Daniel Pielmeier wrote:
3 >> 2010/11/2 Gary Golden <mail@××××××××××.me>:
4 >>> Hi, list.
5 >>> I keep changes of my /etc with git and I would like to include
6 >>> /var/lib/portage/world file into the repository.
7 >>>
8 >>> Can I safely do:
9 >>>
10 >>> mv /var/lib/portage/world /etc/portage
11 >>> ln -s /etc/portage /var/lib/portage/world
12 >>>
13 >>> Will portage update handle it properly?
14 >>> Using hardlinks seems to be more cleaner way, but for some reason I
15 >>> don't want to use it for this task.
16 >> It should work. Just try it out, but make a copy of your world file
17 >> before. Should be easy to switch back if anything fails.
18 >>
19 >> Afaik, the creation of the symbolic link should look like this:
20 >> ln -s /etc/portage/world /var/lib/portage/world
21 >>
22 >
23 > Thanks for the correction, you're right, of course.
24 > Nevertheless, I've considered that using hardlinks is most porper way to
25 > solve this task. It basically do what I need, make another reference to
26 > the file under needed directory; without introducing compexity.
27 >
28
29 What about a bind mount?
30
31 Rgds,
32 Coert

Replies

Subject Author
Re: [gentoo-user] world symlinking Gary Golden <mail@××××××××××.me>