Re: Is it possible to build an all-snap image with an customized OS snap?

2016-12-07 Thread Ondrej Kubik
Peng, another option would be to populate device image with needed configuration before you flash it. Add there network configuration and mark consol-conf as already run (touch file /var/lib/console-conf/complete) this will skip console conf on first boot and as device will already have sensible n

Re: Is it possible to build an all-snap image with an customized OS snap?

2016-12-06 Thread Oliver Grawert
hi, Am Montag, den 05.12.2016, 18:47 -0600 schrieb Peng Liu: > Hi Mark, > > Just would like to confirm, the cloud-init integration with "ubuntu- > image" is still an ongoing work? I tried to inject some commands to > run in the first boot of an image, but it did not work. > Thanks. > see http://d

Re: Is it possible to build an all-snap image with an customized OS snap?

2016-12-05 Thread Peng Liu
Hi Mark, Just would like to confirm, the cloud-init integration with "ubuntu-image" is still an ongoing work? I tried to inject some commands to run in the first boot of an image, but it did not work. Thanks. Peng On Fri, Dec 2, 2016 at 6:02 PM, Peng Liu wrote: > Hi Mark, > > Cloud-init sound

Re: Is it possible to build an all-snap image with an customized OS snap?

2016-12-02 Thread Peng Liu
Hi Mark, Cloud-init sounds good fit for the requirement. Let me have a try first. Thanks a lot for your information! Peng On Dec 2, 2016 13:30, "Mark Shuttleworth" wrote: Ah. It sounds like you want cloud-init, which runs on first boot and looks for guidance ("from the cloud" but which can al

Re: Is it possible to build an all-snap image with an customized OS snap?

2016-12-02 Thread Mark Shuttleworth
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 clou

Re: Is it possible to build an all-snap image with an customized OS snap?

2016-12-02 Thread Peng Liu
Hi Mark, 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 e

Re: Is it possible to build an all-snap image with an customized OS snap?

2016-12-02 Thread Mark Shuttleworth
On 01/12/16 18:38, Peng Liu wrote: > I am wondering the possibility to build the image with a local > customized OS snap. I have this question because I am working on an > embedded device which has special requirements on the console-conf in > the first boot. Would it be easier to express those re

Is it possible to build an all-snap image with an customized OS snap?

2016-12-01 Thread Peng Liu
Hi Folks, The document of Ubuntu core indicates the OS snap will be downloaded during image creation with ubuntu-image: http://docs.ubuntu.com/core/en/guides/build-device/image-building#build-a-custom-ubuntu-core-image I am wondering the possibility to build the image with a local customized OS s