Bug#626221: confusing warning: Unknown key ‘union-type’ used

May 09th, 2011 - 09:40 pm ET by Brian May | Report spam

Package: schroot
Version: 1.4.19-1

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 :-(.
Brian May <brian@microcomaustralia.com.au>


Package: schroot<div>Version: 1.4.19-1<br clear="all"><br></div><div>What am I doing wrong? With the following config:</div><div><br></div><div><div>[natty]</div><div>directory=/srv/chroot/natty</div><div>description=Ubuntu natty</div>
<div>users=brian</div><div>root-users=brian</div><div>union-type=aufs</div><div><br></div><div>I get the following message:</div><div><br></div><div><div>W: line 79 [natty]: Unknown key ‘union-type’ used</div><div>I: This option may be present in a newer version</div>
</div><div><br></div><div>Later: oh, I see, I need to have &quot;type=directory&quot;.</div><div><br></div><div>Would be good if the warning message could be improved, this one had me thinking that union file-systems weren&#39;t supported in this version of schroot :-(.</div>
<div>-- </div>Brian May &lt;<a href="mailto:brian@microcomaustralia.com.au">brian@microcomaustralia.com.au</a>&gt;<br>
</div>




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 3 repliesReplies Make a reply

Replies

#1 Roger Leigh
May 10th, 2011 - 04:50 am ET | Report spam

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.






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics