[opensuse-factory] dracut and /usr/etc
Hi, https://bugzilla.suse.com/show_bug.cgi?id=1165366 correctly notes that dracut breaks with the concept of layering (it does not accept symlinks) as seen in Factory. I will create a patch, but before I have some questions: 1. What is a reliable way to know that a system uses a layered file system? 2. IIRC other distros use a similar concept, but different locations. What do they use? (I remember a comparison at AllSystemsGo, but couldn't find a talk) 3. the inst macros so far only consider /etc/XY.d/* if they are excplicitly named. Is there a good reason why installing /etc/XY should automagically install the configuration directory as well? This feels like too much magic at this point. My naive strategy would create a patch that implicitly turns inst /etc/services into inst_any /etc/services /usr/etc/services IF the path starts in /etc/ AND some variable is defined that provides the alternative location (/usr/etc in this case). Cheers, Daniel -- Daniel Molkentin <daniel.molkentin@suse.com> Senior Software Engineeer System Boot and Init SUSE Software Solutions Germany GmbH Maxfeldstrasse 5, 90409 Nuernberg, Germany HRB 36809 (AG Nürnberg) Geschäftsführer: Felix Imendörffer -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Mon, Mar 23, Daniel Molkentin wrote:
Hi,
https://bugzilla.suse.com/show_bug.cgi?id=1165366 correctly notes that dracut breaks with the concept of layering (it does not accept symlinks) as seen in Factory. I will create a patch, but before I have some questions:
1. What is a reliable way to know that a system uses a layered file system?
What do you mean with layered file system? That packages have somewhere well hidden or easy to find vendor config files in /usr and /etc contains only the host specific changes? We have that since a very long time (SLES12 has that already). When which package has changed and where the vendor config can be found below /usr? That's a very good question.
2. IIRC other distros use a similar concept, but different locations. What do they use? (I remember a comparison at AllSystemsGo, but couldn't find a talk)
Some directories: /usr/share/defaults/{etc,skel,ssh,ssl}: ClearLinux and some packages /usr/share/{baselayout,skel,pam.d,coreos,...},/usr/lib64/pam.d,...: CoreOS/Container Linux /writeable,/etc/writeable: Ubuntu Core /usr/etc: openSUSE MicroOS, RedHat/Fedora/CentOS Atomic But the use case is not always identical. Thorsten
3. the inst macros so far only consider /etc/XY.d/* if they are excplicitly named. Is there a good reason why installing /etc/XY should automagically install the configuration directory as well? This feels like too much magic at this point.
My naive strategy would create a patch that implicitly turns
inst /etc/services
into
inst_any /etc/services /usr/etc/services
IF the path starts in /etc/ AND some variable is defined that provides the alternative location (/usr/etc in this case).
Cheers,
Daniel
-- Daniel Molkentin <daniel.molkentin@suse.com> Senior Software Engineeer System Boot and Init SUSE Software Solutions Germany GmbH Maxfeldstrasse 5, 90409 Nuernberg, Germany HRB 36809 (AG Nürnberg) Geschäftsführer: Felix Imendörffer
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Daniel Molkentin
-
Thorsten Kukuk