How to disable cloud-init during flash image generation?

Oliver Grawert ogra at
Wed Mar 23 14:21:04 UTC 2016

Am Mittwoch, den 23.03.2016, 09:50 -0400 schrieb Scott Moser:
> On Wed, 23 Mar 2016, Jian LUO wrote:
> > Hi list,
> >
> > Is it possible to disable cloud-init and co. by setting ubuntu-core config
> > in gadget snap? It slows down the boot process on my board by 80 seconds.
> With the next upload to ubuntu you will be able to disable cloud-init by:
>   touch /etc/cloud/cloud-init.disabled
> or modifying kernel command line to have:
>   cloud-init=disabled
> That said, 80 seconds sounds like something else is probably going wrong.
no, that sounds very typical for a bunch of python scripts on a slow arm
system, especially on first boot where you also generate the keys
(without that it is more in the 30sec realm) ... 

given we only use cloud-init for setting up the ubuntu user credentials
(sudo) and ssh keys we should probably consider replacing it with a 10
line shell script ;)

(it would also save us from having to have cloud-init config files
created inside /writable before first boot which would ease a lot of

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the snappy-devel mailing list