1
0
mirror of https://github.com/krislamo/preseed synced 2024-11-12 22:40:35 +00:00
This commit is contained in:
Kris Lamoureux 2020-03-05 01:52:52 -05:00
parent 38ea99cf44
commit 56a06faa3b
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -23,7 +23,7 @@ d-i netcfg/choose_interface select auto
d-i netcfg/disable_autoconfig boolean true d-i netcfg/disable_autoconfig boolean true
# Static network configuration. # Static network configuration.
d-i netcfg/get_ipaddress string 192.168.1.16 d-i netcfg/get_ipaddress string 192.168.1.17
d-i netcfg/get_netmask string 255.255.255.0 d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1 d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_nameservers string 192.168.1.1 d-i netcfg/get_nameservers string 192.168.1.1
@ -144,6 +144,6 @@ d-i preseed/late_command string \
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)}'); \ ethdev=$(ip a | grep -e "^2" | awk '{print substr($2, 1, length($2)-1)}'); \
echo "$ethdev: \4{$ethdev}" >> /target/etc/issue; \ echo "$ethdev: \4{$ethdev}" >> /target/etc/issue;
ssh-keygen -l -f /target/etc/ssh/ssh_host_ecdsa_key.pub | \ # ssh-keygen -l -f /target/etc/ssh/ssh_host_ecdsa_key.pub | \
awk '{split($2, a, ":"); print a[2]}' >> /target/etc/issue; # awk '{split($2, a, ":"); print a[2]}' >> /target/etc/issue;