ensure ssh keys are kept from live system

This commit is contained in:
f 2022-07-02 19:28:24 -03:00
parent 2e5739f8aa
commit d48b989499

View file

@ -31,7 +31,7 @@
dest: "/mnt/etc/mkinitfs/mkinitfs.conf"
mode: "0750"
- name: "Copy SSH host keys from the live system."
shell: "cp -a /etc/ssh/*_key* /mnt/etc/ssh/"
shell: "rm /mnt/etc/ssh/*_key* -f && cp -a /etc/ssh/*_key* /mnt/etc/ssh/"
args:
creates: "/mnt/etc/ssh/ssh_host_ed25519_key"
- name: "Copy SSH authorized keys from the live system. First create the /root/.ssh directory."