On Thu, Aug 27, 2015 at 10:46:49AM +0000, Antti Kantee wrote:
> On 27/08/15 10:33, Martin Lucina wrote:
> >>Being able to specify an alternate config file or put all the arguments on 
> >>the
> >>command line is much easier for automated builds.
> >
> >In that case, I can do the following:
> >
> >1. Add a '-c CONFIG' option to rumpbake.
> 
> Ok, but what does it do in case of duplicates?  Override previous ones?
> Override them but print something to stderr?  Error out?
> 

I would say if user ever specifies a config file we shouldn't read the
default one. That is a simple solution to an open-ended question.

> Furthermore, require RUMPBAKE_CONFVERS to be specified in each config file,
> just so that we don't have to make sure to break the syntax if we change
> semantics.
> 

And also print out RUMPBAKE_CONFVERS in rumpbake (--help?) output so
that user and automatic system has an idea what version is expected.
This is a trivial thing I think of.

Wei.

> >3. Additionally, search for a rumpbake.conf in some well-defined path, say
> >$HOME/.config/rumpkernel.org/rumpbake.conf.
> 
> I don't see why that's desired.  If typing -c is too tiring, you can always
> define an alias or use a Makefile instead of some weird magic happening.  ld
> doesn't read ~/.ld.conf either.

Reply via email to