1 |
On Thu, 21 Oct 2004, Paul de Vrieze wrote: |
2 |
> On Thursday 21 October 2004 00:02, andrea ferraris wrote: |
3 |
>> The first one is simple: in a litle gentoo system that I'm |
4 |
>> managing for a year now with authomatic nightly updates, |
5 |
>> I had to update almost manually about a hundred of |
6 |
>> configuration files. The system (gentoo) is well designed, |
7 |
>> so, if I didn't update, all works because the original |
8 |
>> configuration files stay in place, but for the better and |
9 |
>> also only for the good, the thing to do is to use etc-update |
10 |
>> to update such configuration files. The problem is that such |
11 |
>> process is really time consuming and error prone, so it's |
12 |
>> not very good. |
13 |
> |
14 |
> You might want to try dispatch-conf. It is superior to etc-update in |
15 |
> many aspects, and it comes with gentoolkit. Further there is normally |
16 |
> no need to update every night. While there is no problem with it, it |
17 |
> will increase the maintenance load unnecessarilly. |
18 |
|
19 |
Reading the dispatch-conf(1") manpage (1<b>"</b>?), I see that it does a |
20 |
certain amount of reduction of makework. However, it does nothing to |
21 |
fix my primary annoyance with Gentoo's attempts to update my /etc files. |
22 |
|
23 |
My issue is: Gentoo's patch system does not take current state into |
24 |
account in any appropriate manner. This means that any file in /etc |
25 |
which I have made changes will be updated improperly; I'll therefore |
26 |
need to either throw out new changes or adapt them to my changes every |
27 |
time Gentoo considers updating them. |
28 |
|
29 |
As an example, I'm not using the standard Gentoo partition layout. This |
30 |
means that, every so often, Gentoo tries to "fix" my fstab. It |
31 |
generally does this by inserting the new values it wants to have for |
32 |
each partition into the file, producing an fstab file which has multiple |
33 |
mount points with the same names, but different devices and file system |
34 |
formats. I seem to recall one of the earlier attempts entirely |
35 |
eliminated my config. I'd have changed distributions over this if these |
36 |
files were installed immediately. |
37 |
|
38 |
Other files which tend to be incredibly frustrating are basic config |
39 |
files. For example, /etc/etc-update.conf. Every time an upgrade |
40 |
decides it wants to check on the status of this file, it decides that, |
41 |
on the whole, I was mistaken regarding my choice of difference viewer, |
42 |
and the various other options I specified. |
43 |
|
44 |
I've generally stayed fairly silent on this matter, because it appeared |
45 |
that people were aware of the problem, and I have a difficult time not |
46 |
frothing over it. However, it's apparent that the understanding that |
47 |
the developers have does not come anywhere close to understanding my |
48 |
problem with the current system. |
49 |
|
50 |
|
51 |
Excluding program directories (for example, /etc/init.d), all changes to |
52 |
existing /etc files should compensate for changes that the local |
53 |
administrator has made. For example, when upgrading a configuration |
54 |
file, the new version should, as much as possible, retain the changes |
55 |
that the local administrator has made. When the ext3 filesystem tools |
56 |
add a new option, any attempts to update /etc/fstab should ignore any |
57 |
partitions that aren't ext3. It should not add any partitions that it |
58 |
feels are missing, either due to having ignored a reiserfs partition or |
59 |
due to that partition not being there. It should not alter any swap |
60 |
partitions that haven't been modified according to a change the ext3 |
61 |
maintainer previously saw - it's possible it may have not been installed |
62 |
here, it's possible the administrator backed it out. It should NEVER |
63 |
try to change the partition type (for example, from ext3 to xfs, like it |
64 |
currently wants to do.) |
65 |
|
66 |
If people are interested, I could potentially write a tutorial on |
67 |
methods one could utilize to perform such functions. Note that this |
68 |
would be written to writing the code in perl, as I don't know python |
69 |
well, and it doesn't feel natural to me. |
70 |
|
71 |
Ed |
72 |
|
73 |
-- |
74 |
gentoo-portage-dev@g.o mailing list |