fixed ssh key deployment for arch
This commit is contained in:
parent
16e909c42b
commit
99865e2864
1 changed files with 8 additions and 5 deletions
|
@ -67,12 +67,15 @@ case "$variant" in
|
|||
"archlinux")
|
||||
# create cloud-init - replace by grabbing these directly from git
|
||||
mkdir -p /tmp/cloud-init
|
||||
|
||||
|
||||
echo "#cloud-config
|
||||
users:
|
||||
- name: root
|
||||
ssh_authorized_keys:
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILG56T1k766Cru14kyXI8WXSJwlO2sVhmH6JeRWy+mfe root@host.actcur.com" > /tmp/cloud-init/user-data
|
||||
|
||||
|
||||
# create new base VM
|
||||
virt-install --name=$name --vcpus=$cpu --memory=$memory --disk path=$path,size=$root_disk,sparse=true,discard=unmap,bus=scsi ${attach} --os-variant=$variant --network bridge=br1,mac=$mac --memballoon model=virtio,autodeflate=on --cdrom=$img --graphics vnc --cloud-init user-data="/tmp/cloud-init/user-data" --autoconsole=none
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue