diff --git a/scripts/create.sh b/scripts/create.sh index 75d6ad5..c1e4903 100644 --- a/scripts/create.sh +++ b/scripts/create.sh @@ -68,6 +68,14 @@ if [ -n "$attach" ]; then attach="--disk ${attach},discard=unmap";fi #determine if deflate should be on if [ -n "$deflate" ]; then deflate="--memballoon model=virtio,autodeflate=on";else deflate="--memballoon model=virtio";fi + +case "$variant" in + "archlinux") + # create cloud-init - replace by grabbing these directly from git + mkdir -p /tmp/cloud-init + + +echo "#cloud-config - name: root ssh_authorized_keys: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILG56T1k766Cru14kyXI8WXSJwlO2sVhmH6JeRWy+mfe root@host.actcur.com" > /tmp/cloud-init/user-data