Merge "Simple-init should disable cloud-init"
This commit is contained in:
commit
6fb2a28495
@ -14,6 +14,7 @@ if [ -z "$DIB_CLOUD_INIT_DATASOURCES" ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d /etc/cloud/cloud.cfg.d ]; then
|
||||||
# DatasourceNone doesn't exist in Ubuntu 12.04 (Precise)
|
# DatasourceNone doesn't exist in Ubuntu 12.04 (Precise)
|
||||||
# which uses cloud-init version 0.6.3
|
# which uses cloud-init version 0.6.3
|
||||||
if [ "$(lsb_release -cs)" = 'precise' ] ; then
|
if [ "$(lsb_release -cs)" = 'precise' ] ; then
|
||||||
@ -25,3 +26,4 @@ else
|
|||||||
datasource_list: [ $DIB_CLOUD_INIT_DATASOURCES, None ]
|
datasource_list: [ $DIB_CLOUD_INIT_DATASOURCES, None ]
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
cloud-init-datasources
|
||||||
dib-init-system
|
dib-init-system
|
||||||
install-types
|
install-types
|
||||||
source-repositories
|
source-repositories
|
||||||
|
1
elements/simple-init/environment.d/50-disable-cloud-init
Normal file
1
elements/simple-init/environment.d/50-disable-cloud-init
Normal file
@ -0,0 +1 @@
|
|||||||
|
export DIB_CLOUD_INIT_DATASOURCES="None"
|
Loading…
Reference in New Issue
Block a user