mirror of
https://github.com/rancher/os.git
synced 2025-08-31 14:23:11 +00:00
WIP: supply cloud-config via openstack config-2 CD
This commit is contained in:
@@ -90,12 +90,19 @@ KERNEL_ARGS="rancher.password=rancher console=ttyS0 ${QEMU_APPEND}"
|
||||
|
||||
if [ "$UNAME" == "Darwin" ] && [ -x $(which xhyve) ]; then
|
||||
|
||||
CLOUD_CONFIG_ISO="$(pwd)/cloud-config.iso"
|
||||
rm -rf ${CLOUD_CONFIG_ISO}
|
||||
|
||||
# PREREQ: brew install cdrtools
|
||||
mkisofs -R -V config-2 -o "${CLOUD_CONFIG_ISO}" "$(pwd)/cloud-init"
|
||||
|
||||
echo PWD=`pwd`
|
||||
exec sudo xhyve -H -P \
|
||||
-m 4G \
|
||||
-s 0:0,hostbridge -s 31,lpc \
|
||||
-l com1,stdio \
|
||||
-s 2:0,virtio-net \
|
||||
-s 3,ahci-cd,${CLOUD_CONFIG_ISO} \
|
||||
-U a01fb25c-3a19-4759-a47a-2e353e51807d \
|
||||
-f kexec,${KERNEL},${INITRD_TEST},"earlyprintk=serial acpi=off elevator=noop ${KERNEL_ARGS}"
|
||||
|
||||
|
Reference in New Issue
Block a user