Using git on / for configuration files
Eli Billauer
eli at billauer.co.il
Sat Jun 9 10:40:17 IDT 2012
Let's take them one by one:
bind mounting: That reminds me that I once mounted my / somewhere under
my home directory to make it temporarily available over an SMB share. It
was a quick thing, and then I went rm -rf on the directory under which
the mount was done. The only time ever I needed to restore / from backup.
git submodules: I'll try that out, if my plan A fails (moving .git to
/). Even though plan A involves hacking in etckeeper's scripts, it looks
like the natural solution to me.
Eli
On 06/09/2012 08:46 AM, Amos Shapira wrote:
>
> What about linking the none-/etc directories as git submodules? Would
> that help?
>
> (I'm still 100 pages from the end of Pro Git and just read about
> submodules last night).
>
> On Jun 9, 2012 2:13 AM, "Oron Peled" <oron at actcom.co.il
> <mailto:oron at actcom.co.il>> wrote:
>
> On Friday, 8 בJune 2012 12:24:55 Eli Billauer wrote:
> > <blockquote type="cite">
> > <pre wrap="">What I liked less, is that the repository is under /etc
> (not surprising, and
> > still), so configuration files outside that directory can't be
> > tracked. /var/lib/tftpboot/pxelinux.cfg/, for example.
> > </pre>
> > </blockquote>
> > <pre wrap="">
> [ Replying to HTML mail... thanks, Eli you deserve it :-( ]
>
> If you only want to follow a couple of directories/files you can
> bind-mount them to something under /etc and solve the problem.
>
> Cheers,
>
> --
> Oron Peled Voice: +972-4-8228492
> <tel:%2B972-4-8228492>
> oron at actcom.co.il <mailto:oron at actcom.co.il>
> http://users.actcom.co.il/~oron <http://users.actcom.co.il/%7Eoron>
> Some people claim that the UNIX learning curve is steep, but at least
> you only have to climb it once
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il <mailto:Linux-il at cs.huji.ac.il>
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
More information about the Linux-il
mailing list