mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-26 23:55:18 +00:00
f86b9dd95e
Add cloud-init data for Ubuntu and introduce a convenience script that can be used to generate cloud-init disk images for manual testing. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
14 lines
507 B
Bash
Executable File
14 lines
507 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
|
|
rm /tmp/clear-cloudinit.img
|
|
mkdosfs -n config-2 -C /tmp/clear-cloudinit.img 8192
|
|
mcopy -oi /tmp/clear-cloudinit.img -s test_data/cloud-init/clear/openstack ::
|
|
|
|
rm /tmp/ubuntu-cloudinit.img
|
|
mkdosfs -n cidata -C /tmp/ubuntu-cloudinit.img 8192
|
|
mcopy -oi /tmp/ubuntu-cloudinit.img -s test_data/cloud-init/ubuntu/user-data ::
|
|
mcopy -oi /tmp/ubuntu-cloudinit.img -s test_data/cloud-init/ubuntu/meta-data ::
|
|
mcopy -oi /tmp/ubuntu-cloudinit.img -s test_data/cloud-init/ubuntu/network-config ::
|
|
|