1 |
On 11/02/2010 03:53 PM, Coert Waagmeester wrote: |
2 |
> Gary Golden wrote: |
3 |
>> On 11/02/2010 12:08 PM, Daniel Pielmeier wrote: |
4 |
>>> 2010/11/2 Gary Golden <mail@××××××××××.me>: |
5 |
>>>> Hi, list. |
6 |
>>>> I keep changes of my /etc with git and I would like to include |
7 |
>>>> /var/lib/portage/world file into the repository. |
8 |
>>>> |
9 |
>>>> Can I safely do: |
10 |
>>>> |
11 |
>>>> mv /var/lib/portage/world /etc/portage |
12 |
>>>> ln -s /etc/portage /var/lib/portage/world |
13 |
>>>> |
14 |
>>>> Will portage update handle it properly? |
15 |
>>>> Using hardlinks seems to be more cleaner way, but for some reason I |
16 |
>>>> don't want to use it for this task. |
17 |
>>> It should work. Just try it out, but make a copy of your world file |
18 |
>>> before. Should be easy to switch back if anything fails. |
19 |
>>> |
20 |
>>> Afaik, the creation of the symbolic link should look like this: |
21 |
>>> ln -s /etc/portage/world /var/lib/portage/world |
22 |
>>> |
23 |
>> |
24 |
>> Thanks for the correction, you're right, of course. |
25 |
>> Nevertheless, I've considered that using hardlinks is most porper way to |
26 |
>> solve this task. It basically do what I need, make another reference to |
27 |
>> the file under needed directory; without introducing compexity. |
28 |
>> |
29 |
> |
30 |
> What about a bind mount? |
31 |
> |
32 |
> Rgds, |
33 |
> Coert |
34 |
> |
35 |
> |
36 |
|
37 |
Indeed, it is another solution for this. |
38 |
But its disadvantage is that it requires additional configuration (fstab |
39 |
at least) |
40 |
If /var would be on another fs, then I would use bind mount, though :) |
41 |
|
42 |
|
43 |
-- |
44 |
Gary Golden |