From 12c8193d9ae7e9b125eba4e4f764bfd45e9ffe61 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Thu, 5 Mar 2020 10:27:22 -0500 Subject: [PATCH] Just fingerprint --- vmseed.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vmseed.txt b/vmseed.txt index 54b578f..598bbe0 100644 --- a/vmseed.txt +++ b/vmseed.txt @@ -139,11 +139,11 @@ d-i grub-installer/bootdev string /dev/vda d-i finish-install/reboot_in_progress note # Just before install finishes, install SSH keys into root +# ethdev=$(ip a | grep -e "^2" | awk '{print substr($2, 1, length($2)-1)}'); \ +# echo "$ethdev: \4{$ethdev}" >> /target/etc/issue; d-i preseed/late_command string \ mkdir -p /target/root/.ssh; \ wget -O /target/root/.ssh/authorized_keys \ https://raw.githubusercontent.com/krislamo/bootstrap/master/authorized_keys; \ - ethdev=$(ip a | grep -e "^2" | awk '{print substr($2, 1, length($2)-1)}'); \ - echo "$ethdev: \4{$ethdev}" >> /target/etc/issue; -# ssh-keygen -l -f /target/etc/ssh/ssh_host_ecdsa_key.pub | \ -# awk '{split($2, a, ":"); print a[2]}' >> /target/etc/issue; + ssh-keygen -l -f /target/etc/ssh/ssh_host_ecdsa_key.pub | \ + awk '{split($2, a, ":"); print a[2]}' >> /target/etc/issue;