1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

ros install

This commit is contained in:
Ivan Mikushin
2015-08-18 19:07:00 +05:00
parent ab59d3cc64
commit e486b7e218
6 changed files with 152 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
#cloud-config
{}

View File

@@ -19,6 +19,7 @@ do
done
DIST=${DIST:-/dist}
CLOUD_CONFIG=${CLOUD_CONFIG:-/scripts/conf/empty.yml}
BASE_DIR="/mnt/new_img"
# TODO: Change this to a number so that users can specify.
# Will need to make it so that our builds and packer APIs remain consistent.

View File

@@ -12,8 +12,9 @@ if [ -z ${BASE_DIR} ]; then
fi
mkdir -p ${BASE_DIR}/var/lib/rancher/conf/cloud-config.d
cp ${CLOUD_DATA} ${BASE_DIR}/var/lib/rancher/conf/cloud-config.d/
if [ "$CLOUD_DATA" != "/scripts/conf/empty.yml" ]; then
cp ${CLOUD_DATA} ${BASE_DIR}/var/lib/rancher/conf/cloud-config.d/
fi
for f in ${FILES[@]}; do
IFS=":" read s d <<< "${f}"