Re: Directory structure suggestion for configuration in /etc
- To: debian-devel@lists.debian.org
- Subject: Re: Directory structure suggestion for configuration in /etc
- From: Ángel <debian-devel@debian.16bits.net>
- Date: Sun, 05 Jan 2025 00:15:43 +0100
- Message-id: <[🔎] 68bdefc9729ce5fd969cc9234296785c538250c7.camel@debian.16bits.net>
- In-reply-to: <87bjx65efg.fsf@hope.eyrie.org>
- References: <Z2RCjqiFt0hQi2IW@begin> <Z2TfFJX8x-E0Ot12@localhost> <Z2Uw9Szp74KCxllS@begin> <Z2VBatUED-Sw8K6T@localhost> <Z2VMEfO0gSI0aXJ8@begin> <7cf6c4e621a9bf5084fb63981eae40e9acd24de1.camel@43-1.org> <Z2VcTOw0z8jWBDps@begin> <340a0206232582ec5342ffc7130fef09346c5638.camel@43-1.org> <Z2Vn01PVY1yc07dz@begin> <87bjx65efg.fsf@hope.eyrie.org>
On 2024-12-20 at 11:42 -0800, Russ Allbery wrote:
> Maybe it would be more productive to take the preference disagreement as
> given and then try to figure out how to proceed given that we're never
> going to all agree on the best way of handling configuration files? Is
> there some way that we can try to accomodate both groups?
Create a diversion from /etc to /usr/share/etc-conffiles-as-packaged
Mkdir your almost-empty etc folder on /root/etc-changes
Use a unionfs or union mount to combine /usr/share/etc-templates-as-packaged + /root/etc-changes mounted on /etc
As the cherry on top of the cake, there could be a package that did
this automatically.
The trickiest part is probably that, for early daemons to correctly use
that /etc, you may need to do that early in the boot process, in the
initrd, which is less comfortable to code. Alternatively, perhaps a
stub config on /etc would be enough for bootstrapping this (systemd
might interfere with this, though).
(*) I'm not sure the dpkg-divert mechanism would be able to handle a
diversion of /etc, but adding such support if missing would be simple
and *consistent* with the rest of the system.
Reply to: