Make cloud-init-nocloud work cross-platform.

Previously debconf was used and thus this only worked on dpkg based
systems. Now we can support any system that runs a reasonably recent
cloud-init.

Change-Id: I1397aefb3af400adcfd98f858c5a32fad2b584b5
This commit is contained in:
Clint Byrum 2013-07-11 08:21:51 -07:00
parent 8c5888e853
commit ac738685fb

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
printf "%s\t%s\t%s\t%s\n" \ cat > /etc/cloud/cloud.cfg.d/91-local-metadata-only.cfg <<EOF
cloud-init cloud-init/datasources multiselect "NoCloud, None" | \ # No cloud metadata available, use only what is in the image.
debconf-set-selections datasource_list: [ NoCloud, None ]
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure cloud-init EOF