mirror of
https://github.com/krislamo/preseed
synced 2024-11-13 23:00:36 +00:00
Just fingerprint
This commit is contained in:
parent
56a06faa3b
commit
12c8193d9a
@ -139,11 +139,11 @@ d-i grub-installer/bootdev string /dev/vda
|
|||||||
d-i finish-install/reboot_in_progress note
|
d-i finish-install/reboot_in_progress note
|
||||||
|
|
||||||
# Just before install finishes, install SSH keys into root
|
# 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 \
|
d-i preseed/late_command string \
|
||||||
mkdir -p /target/root/.ssh; \
|
mkdir -p /target/root/.ssh; \
|
||||||
wget -O /target/root/.ssh/authorized_keys \
|
wget -O /target/root/.ssh/authorized_keys \
|
||||||
https://raw.githubusercontent.com/krislamo/bootstrap/master/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)}'); \
|
ssh-keygen -l -f /target/etc/ssh/ssh_host_ecdsa_key.pub | \
|
||||||
echo "$ethdev: \4{$ethdev}" >> /target/etc/issue;
|
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;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user