[buildd-tools-devel] Bug#626221: Bug#626221: confusing warning: Unknown key ‘union-type’ used

Roger Leigh rleigh at codelibre.net
Tue May 10 08:39:08 UTC 2011


On Tue, May 10, 2011 at 11:31:41AM +1000, Brian May wrote:
> What am I doing wrong? With the following config:
> 
> [natty]
> directory=/srv/chroot/natty
> description=Ubuntu natty
> users=brian
> root-users=brian
> union-type=aufs
> 
> I get the following message:
> 
> W: line 79 [natty]: Unknown key ‘union-type’ used
> I: This option may be present in a newer version
> 
> Later: oh, I see, I need to have "type=directory".
> 
> Would be good if the warning message could be improved, this one had me
> thinking that union file-systems weren't supported in this version of
> schroot :-(.

I'll see what I can do.

The problem is, from the POV of the keyfile parser, it really *is*
unknown: the chroot object reads all the keys it knows about, and
anything left over is unknown.  chroots not supporting unions don't
posess the union "facet" which provides the unioning functionality,
and so they simply are unable to process that key.  The chroot
objects are (internally) extensible via the addition of "facets",
each of which can process arbitrary keys; in consequence it's not
possible to know at the time of the error that an "unknown" key is
valid in other contexts.

If we were to improve this, we would need a list of all potentially
usable keys, but that might be rather difficult to do--it can also
vary depending on configure options and potentially other conditions.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110510/c9e133c4/attachment.pgp>


More information about the Buildd-tools-devel mailing list