Merge "cloud-init-nocloud element for non-cloud image"
This commit is contained in:
commit
86a1294c28
3
elements/cloud-init-nocloud/README.md
Normal file
3
elements/cloud-init-nocloud/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
Configures cloud-init to only use on-disk metadata/userdata sources. This
|
||||
will avoid a boot delay of 2 minutes while polling for cloud data sources
|
||||
such as the EC2 metadata service.
|
6
elements/cloud-init-nocloud/install.d/05-set-cloud-init-sources
Executable file
6
elements/cloud-init-nocloud/install.d/05-set-cloud-init-sources
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
printf "%s\t%s\t%s\t%s\n" \
|
||||
cloud-init cloud-init/datasources multiselect "NoCloud, None" | \
|
||||
debconf-set-selections
|
||||
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure cloud-init
|
Loading…
Reference in New Issue
Block a user