mirror of
https://github.com/krislamo/preseed
synced 2024-11-10 05:50:34 +00:00
Tests (just echo into issue)
This commit is contained in:
parent
12c8193d9a
commit
f8c7791e6d
@ -140,10 +140,9 @@ 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;
|
||||
# ssh-keygen -l -f /target/etc/ssh/ssh_host_ecdsa_key.pub >> /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; \
|
||||
ssh-keygen -l -f /target/etc/ssh/ssh_host_ecdsa_key.pub | \
|
||||
awk '{split($2, a, ":"); print a[2]}' >> /target/etc/issue;
|
||||
echo "enp1s0: \4{enp1s0}" >> /target/etc/issue;
|
||||
|
Loading…
Reference in New Issue
Block a user