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:
parent
8c5888e853
commit
ac738685fb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user