<div dir="ltr"><span style="font-size:12.8px">Peng, another option would be to populate device image with needed configuration before you flash it.</span><div style="font-size:12.8px">Add there network configuration and mark consol-conf as already run (touch file /var/lib/console-conf/<wbr>complete)</div><div style="font-size:12.8px">this will skip console conf on first boot and as device will already have sensible network configuration it should connect to the network.</div><div style="font-size:12.8px">Of course this will still leave you with problems how to discover device on network and you will probably need add default user to the image as well. But you can experiment with this before cloud init is fully implemented.....</div><div style="font-size:12.8px">// Ondra</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 9:30 AM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<span class="">Am Montag, den 05.12.2016, 18:47 -0600 schrieb Peng Liu:<br>
> Hi Mark,<br>
><br>
> Just would like to confirm, the cloud-init integration with "ubuntu-<br>
> image" is still an ongoing work? I tried to inject some commands to<br>
> run in the first boot of an image, but it did not work.<br>
> Thanks.<br>
><br>
</span>see <a href="http://docs.ubuntu.com/core/en/reference/gadget" rel="noreferrer" target="_blank">http://docs.ubuntu.com/<wbr>core/en/reference/gadget</a><br>
<br>
you can build your own gadget and add a cloud.conf [1] file to make<br>
that work, i'm not sure how well the USB way that mark refers to is<br>
documented (or actually working) currently.<br>
<br>
ciao<br>
oli<br>
<br>
[1] <a href="https://cloudinit.readthedocs.io/en/latest/topics/examples.html" rel="noreferrer" target="_blank">https://cloudinit.<wbr>readthedocs.io/en/latest/<wbr>topics/examples.html</a><br>--<br>
Devices mailing list<br>
<a href="mailto:Devices@lists.snapcraft.io">Devices@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.snapcraft.io/mailman/listinfo/devices" rel="noreferrer" target="_blank">https://lists.snapcraft.io/<wbr>mailman/listinfo/devices</a><br>
<br></blockquote></div><br></div>