Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 232132

Summary: stackable runlevels
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement CC: roy, ziga.boehm
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2008-07-18 01:20:50 UTC
i have need of many profiles which largely have the same exact base.  if we made profiles stackable like portage profiles, that would make my life so much easier.  so, similar to portage, the spec would be simple.  we'd have a "parent" (or maybe ".parent" ?) file that if it exists, we read (ignoring blank/comment lines) and every other line will be the name of a parent profile.  it isnt a path spec or anything like that, just the profile name.

for example, if /etc/runlevels/moo/parent looked like:
<<< snip >>>
# eat it!

mommy
daddy
priest
<<< snip >>>

then the runlevel "moo" would recurse into its parents "mommy", "daddy", "priest".

only gotcha to watch out for i think would be circular parents.