mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
ros install
This commit is contained in:
2
scripts/installer/conf/empty.yml
Normal file
2
scripts/installer/conf/empty.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
#cloud-config
|
||||
{}
|
@@ -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.
|
||||
|
@@ -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}"
|
||||
|
Reference in New Issue
Block a user