Add new cloud-init element

Allows for composable builds from a minimal source.

Change-Id: I16f560ca4b1737c0928f3f3b15ea2580df820e97
Closes-Bug: 1539272
This commit is contained in:
Matthew Thode 2016-01-28 15:37:20 -06:00
parent 1733c5fb92
commit a2d4af9541
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8
5 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,8 @@
========
cloud-init
========
Install's and enables cloud-init for systems that don't come with it
pre-installed
Currently only supports Gentoo.

View File

@ -0,0 +1 @@
package-installs

View File

@ -0,0 +1 @@
cloud-init:

View File

@ -0,0 +1,7 @@
{
"family": {
"gentoo": {
"cloud-init": "app-emulation/cloud-init"
}
}
}

View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# gentoo
if [[ "${DISTRO_NAME}" == "gentoo" ]]; then
rc-update add cloud-config default
rc-update add cloud-final default
rc-update add cloud-init-local default
rc-update add cloud-init default
fi