Ok, a few more words about the situation.

Indeed, the in-line comments has never been actually supported.
They were supported indirectly, by shell which is used to run
all commands generated from various pieces of interface
definition.

What changed in latest version is the way how resulted command
is generated.  In particular, the argument of "route" parameter
has been used last in the resulting command, now it is somewhere
in the middle (when using "ip" command), so the resulting line
becomes incomplete.

Apparently this is one of very few cases were in-line comments
actually were supported (indirectly) but now are not anymore,
due to different usage of arguments.

So the "bug" isn't as catastrophic as I first thought, and in
other parts of /etc/network/interfaces (eg, up|down lines) it
is still supported, the same indirect way.

So my suggestion - either actually do nothing on upgrade, in
a hope that everyone reads the fine manuals (not like me :)
and hence don't use inline comments in interfaces file at
all, or check if "netmask" parameter contains "#" character
and just warn about it in postinst.  It might be okay to
try to automatically fix the problem, but I think it is not
really necessary.

Thanks,

/mjt



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to