Here is my use case which the bare karaf can't meet my needs.
By using the karaf admin API, I can create the karaf instance as I want.
Now I'm just wanting to let the new bare karaf instance to pick up the osgi kernal (equinox).
Without copying the config.properties from the $
/etc, I don't find a easy way to override the default karaf etc.
As my old patch will introduce some conflicts on the resource which can't be shared between the karaf instances, maybe we just need to make sure these resources will be create as newer one instead of the copying one.