<div dir="auto">Hi Mark,<div dir="auto"><br></div><div dir="auto">Cloud-init sounds good fit for the requirement. Let me have a try first. Thanks a lot for your information!</div><div dir="auto"><br></div><div dir="auto">Peng<br><div dir="auto"><div class="gmail_extra"><br><div class="gmail_quote">On Dec 2, 2016 13:30, "Mark Shuttleworth" <<a href="mailto:mark@ubuntu.com">mark@ubuntu.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="m_599835900532493052moz-cite-prefix"><br>
Ah. It sounds like you want cloud-init, which runs on first boot
and looks for guidance ("from the cloud" but which can also be a
USB stick etc) on things like network configuration, user creation
etc. We are busy integrating cloud-init so we can great Ubuntu
Core images on the various public clouds, but the same mechanism
would be useful in a device context.<font color="#888888"><br>
<br>
Mark</font><div class="elided-text"><br>
<br>
On 02/12/16 12:39, Peng Liu wrote:<br>
</div></div><div class="elided-text">
<blockquote type="cite">
<div dir="ltr">Hi Mark,
<div><br>
</div>
<div>Thanks for your suggestion! My requirement is to make
console-conf execute automatically without user's evolvement.
It can configure the network interfaces with default settings.
After that users can use other interfaces (like web portal
through LAN) to further configure the device (for example,
upload public keys, config WAN interface, etc.). Is it
possible to implement such kind of feature with gadget snap?</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>Peng</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Dec 2, 2016 at 6:12 AM, Mark
Shuttleworth <span dir="ltr"><<a href="mailto:mark@ubuntu.com" target="_blank">mark@ubuntu.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 01/12/16 18:38, Peng Liu wrote:<br>
> I am wondering the possibility to build the image
with a local<br>
> customized OS snap. I have this question because I am
working on an<br>
> embedded device which has special requirements on the
console-conf in<br>
> the first boot.<br>
<br>
</span>Would it be easier to express those requirements as
config in the gadget<br>
snap that shapes the behavior of console-conf?<br>
<span class="m_599835900532493052HOEnZb"><font color="#888888"><br>
Mark<br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<p><br>
</p>
</div></div>
</blockquote></div><br></div></div></div></div>