From 34462968a666880d01b187457cfd488877571896 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Mon, 6 Jan 2025 16:35:20 -0700 Subject: [PATCH] fish: prep_vm_archinstall: Copy public key to VM for one less prompt Signed-off-by: Nathan Chancellor --- fish/functions/prep_vm_archinstall.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fish/functions/prep_vm_archinstall.fish b/fish/functions/prep_vm_archinstall.fish index c44147e1..64502d56 100644 --- a/fish/functions/prep_vm_archinstall.fish +++ b/fish/functions/prep_vm_archinstall.fish @@ -5,6 +5,9 @@ function prep_vm_archinstall -d "Prepare archinstall files for virtual machine installation" read -P 'Password for virtual machine user: ' -s user_pass + ssh-copy-id -p 8022 root@localhost + or return + set creds /tmp/creds.json echo '{ "!root-password": null,