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
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
cat > /etc/cloud/cloud.cfg.d/91-local-metadata-only.cfg <<EOF
# No cloud metadata available, use only what is in the image.
datasource_list: [ NoCloud, None ]
EOF