<div dir="ltr">Hi Serge,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 10:36 AM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">Quoting S.Çağlar Onur (<a href="mailto:caglar@10ur.org">caglar@10ur.org</a>):<br>


> Hi,<br>
><br>
> It looks like LXC@staging started to write template outputs to stdout like<br>
> following when one uses the API;<br>
><br>
> [caglar@oOo:~/go/src/<a href="http://github.com/caglar10ur/lxc/examples" target="_blank">github.com/caglar10ur/lxc/examples</a>] sudo ./create<br>
> Creating container...<br>
> Checking cache download in /var/cache/lxc/raring/rootfs-amd64 ...<br>
> Copy /var/cache/lxc/raring/rootfs-amd64 to<br>
> /usr/lib/x86_64-linux-gnu/lxc/rootfs ...<br>
> Copying rootfs to /usr/lib/x86_64-linux-gnu/lxc/rootfs ...<br>
> Generating locales...<br>
>   en_US.UTF-8... up-to-date<br>
> Generation complete.<br>
> Creating SSH2 RSA key; this may take some time ...<br>
> Creating SSH2 DSA key; this may take some time ...<br>
> Creating SSH2 ECDSA key; this may take some time ...<br>
><br>
> ##<br>
> # The default user is 'ubuntu' with password 'ubuntu'!<br>
> # Use the 'sudo' command to run tasks as root in the container.<br>
> ##<br>
><br>
> It wasn't like that @0.9 and I'm not sure whether this change was<br>
> intentional. Wanted to check with you before diving into code to see what<br>
> changed.<br>
<br>
</div></div>It was intentional.  The template scripts provide meaningful output<br>
which I (after switching to lxc_create.c) was silencing, so I considered<br>
that a bug.<br>
<br>
Do you disagree?  Should we keep it silent?  Should we add an option to<br>
lxc-create to dump template output either to a file or stdout or (if<br>
unspecified) silent?<br>
<span class=""><font color="#888888"><br>
-serge<br>
</font></span></blockquote></div><br>I think your suggestion "providing an option to dump template output either to a file or stdout or (if unspecified) silent" sounds best among possible solutions.<br><br clear="all">

<div style>Cheers</div>-- <br>S.Çağlar Onur <<a href="mailto:caglar@10ur.org">caglar@10ur.org</a>>
</div></div>