git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: keeping /etc under git with etckeeper

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Aug 9, 2008, 23:42 UTC
Message-ID
<20080809234232.GB18960@genesis.frugalware.org>
In-Reply-To
<14b409fc0808091148k69f4019n6996261a710adfca@mail.gmail.com>
On Sat, Aug 09, 2008 at 08:48:39PM +0200, Pierre-Julien Bringer <pj.bringer@gmail.com> wrote:
Show 5 quoted lines
> 3 If Git has some sort of merge conflict on important config files
> (passwd, etc...), it would be pretty bad [3].
> 
> When using etckeeper:
> 1 There would be a link between the changes if a commit occurs between tasks.
I don't exactly see what the problem is here.
> 2 Permissions are stored thanks to Metastore.

Actually it no longer uses metastore, but yes, etckeeper handles permissions properly, so it is not a problem. The second problem is point 3) from your previous list, but that's easy to avoid: never ever merge, rebase (or any other task that can result in a conflict) in your /etc.

In short, if you want to just track your directory, then it's OK, but if you want to use git to handle the config of multiple machines, it'll be too problematic, I would not suggest doing so.

Previous: martin f krafftNext: Edward Z. Yang
Message 3 of 4 in “keeping /etc under git with etckeeper”
  1. Pierre-Julien BringerAug 9, 2008
  2. martin f krafftAug 9, 2008
  3. Miklos VajnaAug 9, 2008
  4. Edward Z. YangAug 10, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.